Post suggestions changed notification in ShareeSuggestionsDataSource
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 3 Apr 2024 12:40:58 +0000 (20:40 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 17 Apr 2024 08:39:04 +0000 (16:39 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift

index aa3f6388abcdf26f5f526320e8bb9e2753a053da..604efff32c67c79b1eba4b60569c4ceac9c0fec0 100644 (file)
@@ -24,6 +24,7 @@ class ShareeSuggestionsDataSource: SuggestionsDataSource {
     private func updateSuggestions() async {
         let sharees = await fetchSharees(search: inputString)
         suggestions = suggestionsFromSharees(sharees)
+        NotificationCenter.default.post(name: SuggestionsChangedNotificationName, object: self)
     }
 
     private func fetchSharees(search: String) async -> [NKSharee] {