fix an issue where new additions to group not appearing in mentions

pull/614/head
ryanzhao 3 years ago
parent eab9cf96ec
commit a12e86a36b

@ -1,4 +1,5 @@
import PromiseKit import PromiseKit
import SessionMessagingKit
@objc(SNEditClosedGroupVC) @objc(SNEditClosedGroupVC)
final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelegate { final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelegate {
@ -292,6 +293,7 @@ final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelega
}, completion: { }, completion: {
let _ = promise.done(on: DispatchQueue.main) { let _ = promise.done(on: DispatchQueue.main) {
guard let self = self else { return } guard let self = self else { return }
MentionsManager.populateUserPublicKeyCacheIfNeeded(for: self.thread.uniqueId!)
self.dismiss(animated: true, completion: nil) // Dismiss the loader self.dismiss(animated: true, completion: nil) // Dismiss the loader
popToConversationVC(self) popToConversationVC(self)
} }

Loading…
Cancel
Save