Fix multi device display name updating issue

pull/364/head
Niels Andriesse 3 years ago
parent a8cf657c63
commit 0d5a932a50

@ -206,6 +206,9 @@ extension MessageReceiver {
}
userProfile.save(with: transaction)
Storage.shared.setContact(user, using: transaction)
transaction.addCompletionQueue(DispatchQueue.main) {
NotificationCenter.default.post(name: Notification.Name(kNSNotificationName_LocalProfileDidChange), object: nil)
}
transaction.addCompletionQueue(DispatchQueue.main) {
SSKEnvironment.shared.profileManager.downloadAvatar(for: userProfile)
}

Loading…
Cancel
Save