Skip to content

Commit

Permalink
fix(admin): fix nicknames not showing in the admin tab immediately (#…
Browse files Browse the repository at this point in the history
…16969)

Fixes #16957

We didn't listen to the event in the main module.
  • Loading branch information
jrainville authored Dec 13, 2024
1 parent 37251af commit d4e2d4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/modules/main/controller.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit d4e2d4d

Please sign in to comment.