fix(admin): fix nicknames not showing in the admin tab immediately (#16959)

Fixes #16957

We didn't listen to the event in the main module.
This commit is contained in:
Jonathan Rainville 2024-12-12 15:31:01 -05:00 committed by GitHub
parent eaaced6f30
commit 5220fc650d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,6 +521,10 @@ proc init*(self: Controller) =
let args = ContactArgs(e)
self.delegate.contactUpdated(args.contactId)
self.events.on(SIGNAL_CONTACT_NICKNAME_CHANGED) do(e: Args):
var args = ContactArgs(e)
self.delegate.contactUpdated(args.contactId)
self.events.on(SIGNAL_LOGGEDIN_USER_NAME_CHANGED) do(e: Args):
self.delegate.contactUpdated(singletonInstance.userProfile.getPubKey())