Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V 6.2.1 #3245

Merged
merged 1,601 commits into from
Dec 20, 2024
Merged

V 6.2.1 #3245

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1601 commits
Select commit Hold shift + click to select a range
8f1dd81
background
marinofaggiana Oct 8, 2024
cfab5ae
URLCache.shared.removeAllCachedResponses
marinofaggiana Oct 8, 2024
5ce51f5
build 25
marinofaggiana Oct 8, 2024
fd23471
removeAllCachedResponses
marinofaggiana Oct 8, 2024
0ed7ccd
Add optional checks for space/periods when renaming, depending on ser…
mpivchev Oct 8, 2024
ee3e51c
3094 offline crud copy move favorite (#3098)
marinofaggiana Oct 8, 2024
6fd30b5
cleaning code
marinofaggiana Oct 8, 2024
51db0dc
fix
marinofaggiana Oct 8, 2024
f996fde
build 26
marinofaggiana Oct 8, 2024
b5ed5fc
lint
marinofaggiana Oct 8, 2024
3dee62e
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 9, 2024
d387483
Bugfix (#3100)
marinofaggiana Oct 9, 2024
917b332
improvements
marinofaggiana Oct 9, 2024
2a8be10
fix
marinofaggiana Oct 9, 2024
7a23bd1
add ctrl
marinofaggiana Oct 9, 2024
839ca5e
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 10, 2024
95e5ae1
3094 offline crud copy move (#3104)
marinofaggiana Oct 10, 2024
3e006df
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 11, 2024
1a16e3f
notificationCenterReloadDataSource added clearDataSource
marinofaggiana Oct 11, 2024
9bfc733
cleaning
marinofaggiana Oct 11, 2024
d8fb1d8
new build
marinofaggiana Oct 11, 2024
5ce5310
fix 28
marinofaggiana Oct 11, 2024
b6abdee
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 12, 2024
4dbf955
fix(l18n): Fixed typo (#3106)
rakekniven Oct 12, 2024
13e261c
cleaning
marinofaggiana Oct 12, 2024
4affd4e
new build
marinofaggiana Oct 12, 2024
434ef4d
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 13, 2024
4ca2b74
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 14, 2024
64b22e8
Response (#3108)
marinofaggiana Oct 14, 2024
b675aee
Response data changed (#3109)
marinofaggiana Oct 14, 2024
af5480a
Build 30
marinofaggiana Oct 14, 2024
0947e90
fix
marinofaggiana Oct 14, 2024
ad13da9
fix
marinofaggiana Oct 14, 2024
53fa4f8
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 15, 2024
456f8fc
fix favorite
marinofaggiana Oct 15, 2024
49d0e7a
fix crashlog.crash
marinofaggiana Oct 15, 2024
69d203d
set LSMinimumSystemVersion
marinofaggiana Oct 15, 2024
462c40e
Updated sessionDate
marinofaggiana Oct 15, 2024
6014658
Improved code
marinofaggiana Oct 15, 2024
8cff7ca
Build 31
marinofaggiana Oct 15, 2024
cf34dea
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 16, 2024
6af8708
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 17, 2024
5f66d98
test
marinofaggiana Oct 17, 2024
bf1af8a
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Oct 17, 2024
8fac8ab
build 32
marinofaggiana Oct 17, 2024
792af36
Build 33
marinofaggiana Oct 17, 2024
17adff6
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 18, 2024
debff6e
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 19, 2024
af086ad
clean
marinofaggiana Oct 19, 2024
9db3cb5
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Oct 19, 2024
e63858a
disable keep screen awake (conflict with VLC)
marinofaggiana Oct 19, 2024
beb339c
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 20, 2024
e48d7b5
build 34
marinofaggiana Oct 20, 2024
25e6621
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Oct 20, 2024
26a44cf
update nextcloudKit
marinofaggiana Oct 20, 2024
a047a13
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 21, 2024
bd94633
Nextcloud x e2 ee signature (#3116)
marinofaggiana Oct 21, 2024
07a937e
NCScan added check array
marinofaggiana Oct 21, 2024
a4a8404
build 35
marinofaggiana Oct 21, 2024
b6f6126
fixed showSourceCode for Brand
marinofaggiana Oct 21, 2024
dc721df
Added internal option disable_source_code_in_settings
marinofaggiana Oct 21, 2024
b6f6c0c
RESPONSE ERROR - CENTRALIZED
marinofaggiana Oct 21, 2024
4e32cc1
comment
marinofaggiana Oct 21, 2024
e84cae9
fix
marinofaggiana Oct 21, 2024
b0fce75
Fix scrolling bug (#3117)
mpivchev Oct 21, 2024
dbe8e8e
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 22, 2024
1a5a281
Update localization
marinofaggiana Oct 22, 2024
d99c1e7
Nextcloudkit 5.0
marinofaggiana Oct 22, 2024
a7532a2
Fix polling timer not stopping
mpivchev Oct 22, 2024
900b187
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 23, 2024
c277bef
Test: In background max 2 upload otherwise iOS Termination Reason: RU…
marinofaggiana Oct 23, 2024
4e55fd3
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 24, 2024
2f93550
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Oct 24, 2024
4adbbbc
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 25, 2024
116f5e3
Quey metadata status hide in view (#3126)
marinofaggiana Oct 25, 2024
48e4e89
V 6.0.1
marinofaggiana Oct 25, 2024
959e715
added timing
marinofaggiana Oct 25, 2024
6d2ef8b
DB normalized
marinofaggiana Oct 25, 2024
901296f
cleaning code
marinofaggiana Oct 25, 2024
61a6ebe
Improvements (#3127)
marinofaggiana Oct 25, 2024
853171c
Ignore screen awake when media playing (#3128)
mpivchev Oct 25, 2024
a2a8e86
V 6.1.0
marinofaggiana Oct 25, 2024
0f626fa
add option to sync favorites only (#3105)
sp00ktober Oct 25, 2024
d2d084d
lint
marinofaggiana Oct 25, 2024
e20b799
code improved
marinofaggiana Oct 25, 2024
ff5ef12
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 26, 2024
1fd097b
3097 make copy with copy button within same folder (#3130)
marinofaggiana Oct 26, 2024
a0c85a0
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 27, 2024
14c8391
https://github.com/nextcloud/ios/issues/3131
marinofaggiana Oct 27, 2024
11a47e4
https://github.com/nextcloud/ios/issues/3129
marinofaggiana Oct 27, 2024
c5dd9e8
fix reload data source
marinofaggiana Oct 27, 2024
61e821b
build 1
marinofaggiana Oct 27, 2024
5627e3c
Select create folder (#3133)
marinofaggiana Oct 28, 2024
9127141
build 2
marinofaggiana Oct 28, 2024
0bc3d3f
Autoupload favorite (#3135)
marinofaggiana Oct 28, 2024
e395dfb
3134 bug unable to share a document in offline mode (#3136)
marinofaggiana Oct 28, 2024
7d96c24
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 29, 2024
b81a386
build 4 - closed
marinofaggiana Oct 29, 2024
dbb7772
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Oct 29, 2024
d227898
fix (#3141)
marinofaggiana Oct 29, 2024
e283fe2
Version 6.1.1
marinofaggiana Oct 29, 2024
97e3003
fix (#3142)
marinofaggiana Oct 29, 2024
1060f80
fix e2ee share ext
marinofaggiana Oct 29, 2024
2cf5bf1
fix E2EE create preview (#3143)
marinofaggiana Oct 29, 2024
ea4affc
GUI fix - left menu (refresh)
marinofaggiana Oct 29, 2024
f0e8a9b
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 30, 2024
a32f2ef
fix search
marinofaggiana Oct 30, 2024
93f292f
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Oct 30, 2024
3c7db5c
Fix(l10n): Update translations from Transifex
nextcloud-bot Oct 31, 2024
7b869f0
build 1
marinofaggiana Oct 31, 2024
f7a2338
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Oct 31, 2024
bb45ba6
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 1, 2024
32609a7
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 2, 2024
a59c94a
fix (#3152)
marinofaggiana Nov 2, 2024
3a94b4d
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Nov 2, 2024
0fe8774
fix copy
marinofaggiana Nov 2, 2024
4d46188
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Nov 2, 2024
b791cd9
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 3, 2024
4077aa6
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 4, 2024
7432108
https://github.com/nextcloud/ios/issues/3147 (#3158)
marinofaggiana Nov 4, 2024
f51d7f1
File provider extension offline (#3159)
marinofaggiana Nov 4, 2024
5ca90c7
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Nov 4, 2024
6e67bbd
Auto rename (#3118)
mpivchev Nov 4, 2024
8e86f12
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 5, 2024
f7e5bec
prj
marinofaggiana Nov 5, 2024
22a30cd
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Nov 5, 2024
d71fd32
fix select all (#3165)
marinofaggiana Nov 5, 2024
0e5c477
Warn when changing file extension / add "." in front (hidden file) (#…
mpivchev Nov 5, 2024
439b461
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 6, 2024
f3e01b7
new build
marinofaggiana Nov 6, 2024
b23dd86
Tests (#3119)
marinofaggiana Nov 6, 2024
4cf2e4f
Update README.md (#3171)
mpivchev Nov 6, 2024
542f6c3
fix (#3173)
marinofaggiana Nov 6, 2024
aeb97b0
Fix assistant not showing (#3172)
mpivchev Nov 6, 2024
296d2ec
new version (#3174)
marinofaggiana Nov 6, 2024
d81ba4a
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 7, 2024
dce8a8c
rollback (#3176)
marinofaggiana Nov 7, 2024
d641dd5
auth (#3177)
marinofaggiana Nov 7, 2024
4b2f5be
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 8, 2024
4213183
Gui fix improvements (#3178)
marinofaggiana Nov 8, 2024
23c5cd3
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 9, 2024
e79bc6f
close build 1
marinofaggiana Nov 9, 2024
bbe745e
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Nov 9, 2024
0246a24
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 11, 2024
9b5a523
fix - rollback (#3181)
marinofaggiana Nov 11, 2024
39d94d4
Fix black screen (#3182)
marinofaggiana Nov 11, 2024
b8983f3
Build 1 - close
marinofaggiana Nov 11, 2024
4ca62ad
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Nov 11, 2024
6bfd6f0
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 12, 2024
d75422f
Fix upload conflict
mpivchev Nov 12, 2024
2ecd27a
Rollback string
mpivchev Nov 12, 2024
796de4b
localizable (#3188)
marinofaggiana Nov 13, 2024
fb88fff
fix (#3190)
marinofaggiana Nov 13, 2024
de9338d
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 14, 2024
982a54e
partial apply for closure #1 in NCManageDatabase.addMetadata(_:) (#3193)
marinofaggiana Nov 14, 2024
37d28f2
v 6.1.7 (#3194)
marinofaggiana Nov 14, 2024
1c8c76f
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 15, 2024
3654023
Db improvements (#3195)
marinofaggiana Nov 15, 2024
83377ad
icon fix
marinofaggiana Nov 15, 2024
23d2327
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 16, 2024
5c61597
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 17, 2024
c151500
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 18, 2024
e53c645
https://github.com/nextcloud/ios/issues/3197
marinofaggiana Nov 18, 2024
f02efb0
https://github.com/nextcloud/ios/issues/3198
marinofaggiana Nov 18, 2024
2465879
fix
marinofaggiana Nov 18, 2024
003e7aa
https://github.com/nextcloud/ios/issues/3191
marinofaggiana Nov 18, 2024
567888d
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 19, 2024
584d154
fix (#3199)
marinofaggiana Nov 19, 2024
2e798a0
build 2
marinofaggiana Nov 19, 2024
a12b490
Remove timer
mpivchev Nov 19, 2024
1961250
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
mpivchev Nov 19, 2024
fd6dd98
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 20, 2024
0b7e015
Photo view enhanced (#3202)
marinofaggiana Nov 20, 2024
516ce5f
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 21, 2024
6c816ae
build 3
marinofaggiana Nov 21, 2024
2b87a21
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 22, 2024
067693e
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 23, 2024
8e0c11c
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 24, 2024
8c90376
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 25, 2024
cbc416c
2x download (#3205)
marinofaggiana Nov 25, 2024
42d5adc
Push Notification (#3207)
marinofaggiana Nov 25, 2024
22f2d61
Build 4 for TestFlight
marinofaggiana Nov 25, 2024
1604c98
UI display issue on account info (#3209)
marinofaggiana Nov 26, 2024
c65f610
Improved cache image (#3210)
marinofaggiana Nov 26, 2024
858f3db
#2845: Web Fallback for Unified Search Results. (#3183)
i2h3 Nov 27, 2024
0c0caea
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 28, 2024
44c9413
build 6
marinofaggiana Nov 28, 2024
57a65b5
Resolved some compiler warnings to reduce clutter in issue navigator.
i2h3 Nov 29, 2024
1a2dd16
Improved right-to-left support in files list layout.
i2h3 Nov 29, 2024
4d72cbd
Improved right-to-left support in files grid layout.
i2h3 Nov 29, 2024
0c15599
Enforce lock option for MDM (#3196)
mpivchev Nov 29, 2024
6e2b567
Fix(l10n): Update translations from Transifex
nextcloud-bot Nov 30, 2024
4cd927a
Merge pull request #3215 from nextcloud/rtl-improvements
i2h3 Nov 30, 2024
c572835
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 1, 2024
995914d
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 2, 2024
b5ed1dc
Fix crash ? (#3217)
marinofaggiana Dec 2, 2024
729c962
Revert strings
mpivchev Dec 2, 2024
fd91ece
Build 8
marinofaggiana Dec 2, 2024
a0e54a8
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 2, 2024
389e004
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 2, 2024
3ccf96d
added ctrl
marinofaggiana Dec 2, 2024
61ecbe9
Merge branch 'develop' of https://github.com/nextcloud/ios into develop
marinofaggiana Dec 2, 2024
3ee0cd6
Reinstated Slovenian localization.
i2h3 Dec 2, 2024
8a8cd70
Reinstated Croatian localization.
i2h3 Dec 2, 2024
2ef7074
Reinstated Lao localization.
i2h3 Dec 2, 2024
c81e9da
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 3, 2024
a2486d1
Merge pull request #3218 from nextcloud/additional-translations
i2h3 Dec 3, 2024
dd6aed9
Improved searchMediaUI (#3219)
marinofaggiana Dec 3, 2024
1e86ec8
Improv tamp (#3220)
marinofaggiana Dec 3, 2024
2f22637
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 4, 2024
10161bb
close min version.
marinofaggiana Dec 4, 2024
1917136
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Dec 4, 2024
b759203
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 5, 2024
c8380af
Provider file extension (#3224)
marinofaggiana Dec 5, 2024
d2545f5
Mutual (#3225)
marinofaggiana Dec 5, 2024
8c675d2
change NextcloudKit in develop
marinofaggiana Dec 5, 2024
196850c
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 6, 2024
410cc1c
close version
marinofaggiana Dec 6, 2024
24c89c8
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Dec 6, 2024
dd2e225
cleaning
marinofaggiana Dec 6, 2024
76c26e0
fix code
marinofaggiana Dec 6, 2024
fa35100
version 6.1.9
marinofaggiana Dec 6, 2024
4ccef47
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 7, 2024
078a48c
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 8, 2024
2956337
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 9, 2024
6de46bd
fix (#3232)
marinofaggiana Dec 9, 2024
0667986
X-nc-paginate (#3233)
marinofaggiana Dec 9, 2024
78e0efc
fix
marinofaggiana Dec 9, 2024
d95cfbc
added semaphoreReloadDataSource
marinofaggiana Dec 9, 2024
8c0269a
build 1
marinofaggiana Dec 9, 2024
2f69aef
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 10, 2024
a2767a2
Terms of service (#3234)
marinofaggiana Dec 11, 2024
15a53dd
File provider extension (#3236)
marinofaggiana Dec 11, 2024
737d205
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 12, 2024
ba7534e
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 13, 2024
5265493
UI fix (#3238)
marinofaggiana Dec 13, 2024
d273d49
build 3
marinofaggiana Dec 13, 2024
cd858c5
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 14, 2024
a6c7df7
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 15, 2024
c2d5ca3
Preview media (#3240)
marinofaggiana Dec 15, 2024
36cdd3e
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 16, 2024
97bb9c6
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Dec 16, 2024
9f19384
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 18, 2024
0a92c36
Fix freeze (#3244)
marinofaggiana Dec 18, 2024
5f704fa
deadlock protection
marinofaggiana Dec 18, 2024
4a9ec35
comments added
marinofaggiana Dec 18, 2024
8446e56
Fix(l10n): Update translations from Transifex
nextcloud-bot Dec 19, 2024
9fc3356
Merge remote-tracking branch 'origin/master' into develop
marinofaggiana Dec 19, 2024
8f151e4
replace semaphore with InProgress variable
marinofaggiana Dec 19, 2024
9f9f6ac
new version
marinofaggiana Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Nextcloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5503,7 +5503,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 0;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -5530,7 +5530,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 6.1.9;
MARKETING_VERSION = 6.2.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";
Expand Down Expand Up @@ -5569,7 +5569,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 0;
DEVELOPMENT_TEAM = NKUJUXUJ3B;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -5593,7 +5593,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 6.1.9;
MARKETING_VERSION = 6.2.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";
Expand Down
12 changes: 7 additions & 5 deletions iOSClient/Files/NCFiles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NCFiles: NCCollectionViewCommon {
internal var fileNameBlink: String?
internal var fileNameOpen: String?
internal var matadatasHash: String = ""
internal var semaphoreReloadDataSource = DispatchSemaphore(value: 1)
internal var reloadDataSourceInProgress: Bool = false

required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
Expand Down Expand Up @@ -122,10 +122,12 @@ class NCFiles: NCCollectionViewCommon {
// MARK: - DataSource

override func reloadDataSource() {
guard !isSearchingMode else {
guard !isSearchingMode,
!reloadDataSourceInProgress
else {
return super.reloadDataSource()
}
self.semaphoreReloadDataSource.wait()
reloadDataSourceInProgress = true

var predicate = self.defaultPredicate
let predicateDirectory = NSPredicate(format: "account == %@ AND serverUrl == %@", session.account, self.serverUrl)
Expand All @@ -143,12 +145,12 @@ class NCFiles: NCCollectionViewCommon {
self.dataSource = NCCollectionViewDataSource(metadatas: metadatas, layoutForView: layoutForView)

if metadatas.isEmpty {
self.semaphoreReloadDataSource.signal()
reloadDataSourceInProgress = false
return super.reloadDataSource()
}

self.dataSource.caching(metadatas: metadatas, dataSourceMetadatas: dataSourceMetadatas) { updated in
self.semaphoreReloadDataSource.signal()
self.reloadDataSourceInProgress = false
if updated || self.isNumberOfItemsInAllSectionsNull || self.numberOfItemsInAllSections != metadatas.count {
super.reloadDataSource()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ class NCCollectionViewDataSource: NSObject {
counter += 1
}

DispatchQueue.main.async {
return completion(updated)
}
return completion(updated)
}
}

Expand Down
2 changes: 1 addition & 1 deletion iOSClient/Media/NCMedia+CollectionViewDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extension NCMedia: UICollectionViewDataSource {
if kind == mediaSectionHeader {
guard let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "sectionFirstHeaderEmptyData", for: indexPath) as? NCSectionFirstHeaderEmptyData else { return NCSectionFirstHeaderEmptyData() }
header.emptyImage.image = utility.loadImage(named: "photo", colors: [NCBrandColor.shared.getElement(account: session.account)])
if self.hasRunSearchMedia {
if self.searchMediaInProgress {
header.emptyTitle.text = NSLocalizedString("_search_in_progress_", comment: "")
} else {
header.emptyTitle.text = NSLocalizedString("_tutorial_photo_view_", comment: "")
Expand Down
22 changes: 7 additions & 15 deletions iOSClient/Media/NCMedia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class NCMedia: UIViewController {
@IBOutlet weak var menuButton: UIButton!
@IBOutlet weak var gradientView: UIView!

let semaphoreSearchMedia = DispatchSemaphore(value: 1)
let semaphoreNotificationCenter = DispatchSemaphore(value: 1)

let layout = NCMediaLayout()
var layoutType = NCGlobal.shared.mediaLayoutRatio
var documentPickerViewController: NCDocumentPickerViewController?
Expand All @@ -55,7 +52,7 @@ class NCMedia: UIViewController {
var fileSelect: [String] = []
var filesExists: ThreadSafeArray<String> = ThreadSafeArray()
var ocIdDoNotExists: ThreadSafeArray<String> = ThreadSafeArray()
var hasRunSearchMedia: Bool = false
var searchMediaInProgress: Bool = false
var attributesZoomIn: UIMenuElement.Attributes = []
var attributesZoomOut: UIMenuElement.Attributes = []
let gradient: CAGradientLayer = CAGradientLayer()
Expand Down Expand Up @@ -255,23 +252,18 @@ class NCMedia: UIViewController {

@objc func deleteFile(_ notification: NSNotification) {
guard let userInfo = notification.userInfo as NSDictionary?,
let error = userInfo["error"] as? NKError else { return }

semaphoreNotificationCenter.wait()
let error = userInfo["error"] as? NKError
else {
return
}

if error.errorCode == self.global.errorResourceNotFound,
let ocId = userInfo["ocId"] as? String {
self.database.deleteMetadataOcId(ocId)
self.loadDataSource {
self.semaphoreNotificationCenter.signal()
}
self.loadDataSource()
} else if error != .success {
NCContentPresenter().showError(error: error)
self.loadDataSource {
self.semaphoreNotificationCenter.signal()
}
} else {
semaphoreNotificationCenter.signal()
self.loadDataSource()
}
}

Expand Down
11 changes: 4 additions & 7 deletions iOSClient/Media/NCMediaDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,20 @@ extension NCMedia {
@objc func searchMediaUI(_ distant: Bool = false) {
let session = self.session
guard self.isViewActived,
!self.hasRunSearchMedia,
!self.searchMediaInProgress,
!self.isPinchGestureActive,
!self.showOnlyImages,
!self.showOnlyVideos,
!isEditMode,
NCNetworking.shared.downloadThumbnailQueue.operationCount == 0,
let tableAccount = database.getTableAccount(predicate: NSPredicate(format: "account == %@", session.account))
else { return }
self.searchMediaInProgress = true

let limit = max(self.collectionView.visibleCells.count * 3, 300)
let visibleCells = self.collectionView?.indexPathsForVisibleItems.sorted(by: { $0.row < $1.row }).compactMap({ self.collectionView?.cellForItem(at: $0) })

DispatchQueue.global(qos: .background).async {
self.semaphoreSearchMedia.wait()
self.hasRunSearchMedia = true

var lessDate = Date.distantFuture
var greaterDate = Date.distantPast
let countMetadatas = self.dataSource.metadatas.count
Expand Down Expand Up @@ -157,11 +156,9 @@ extension NCMedia {
self.collectionViewReloadData()
}

self.semaphoreSearchMedia.signal()

DispatchQueue.main.async {
self.activityIndicator.stopAnimating()
self.hasRunSearchMedia = false
self.searchMediaInProgress = false

if self.dataSource.metadatas.isEmpty {
self.collectionViewReloadData()
Expand Down
Binary file modified iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings
Binary file not shown.
Binary file modified iOSClient/Supporting Files/tr.lproj/Localizable.strings
Binary file not shown.
Loading