From: Claudio Cambra Date: Wed, 3 Apr 2024 12:40:58 +0000 (+0800) Subject: Post suggestions changed notification in ShareeSuggestionsDataSource X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~46^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=75c977cf865b53a2cef5f285dd8d8f34f0c5e7e7;p=nextcloud-desktop.git Post suggestions changed notification in ShareeSuggestionsDataSource Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift index aa3f6388a..604efff32 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift @@ -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] {