aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-07-01 00:22:44 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-07-01 00:22:44 +0300
commit710a88cd7d6f9644587a95e4b60050c107aaae83 (patch)
treecdc0b6f29d4e0a0ccc7b24dc612bf10bca2b198c /telegram
parente2edbe37ea47eef9366a0d9d6b38228cdfec015a (diff)
Update the nickname in existing subscriptions on re-subscription
Diffstat (limited to 'telegram')
-rw-r--r--telegram/utils.go2
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(