diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-07-01 00:22:44 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-07-01 00:22:44 +0300 |
commit | 710a88cd7d6f9644587a95e4b60050c107aaae83 (patch) | |
tree | cdc0b6f29d4e0a0ccc7b24dc612bf10bca2b198c | |
parent | e2edbe37ea47eef9366a0d9d6b38228cdfec015a (diff) |
Update the nickname in existing subscriptions on re-subscription
-rw-r--r-- | telegram/utils.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/telegram/utils.go b/telegram/utils.go index 99f9b68..17e9861 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -1076,6 +1076,8 @@ func (c *Client) subscribeToID(id int64, chat *client.Chat) { } if chat != nil { args = append(args, gateway.SPNickname(chat.Title)) + + gateway.SetNickname(c.jid, strconv.FormatInt(id, 10), chat.Title, c.xmpp) } gateway.SendPresence( |