From 43ed49d4febf793e93a4f4ab48b5cf0526a6409e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 14 Apr 2023 13:45:45 +0300 Subject: [PATCH] Sync puppet info on push name setting app data --- user.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/user.go b/user.go index 0a8dda3..cbded02 100644 --- a/user.go +++ b/user.go @@ -801,6 +801,11 @@ func (user *User) HandleEvent(event interface{}) { if err != nil { user.log.Warnln("Failed to send presence after push name update:", err) } + _, _, err = user.Client.Store.Contacts.PutPushName(user.JID.ToNonAD(), v.Action.GetName()) + if err != nil { + user.log.Warnln("Failed to update push name in store:", err) + } + go user.syncPuppet(user.JID.ToNonAD(), "push name setting") case *events.PairSuccess: user.PhoneLastSeen = time.Now() user.Session = user.Client.Store