mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Sync puppet info on push name setting app data
This commit is contained in:
parent
d2054a39b2
commit
43ed49d4fe
1 changed files with 5 additions and 0 deletions
5
user.go
5
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
|
||||
|
|
Loading…
Reference in a new issue