diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:52:40 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-25 02:52:40 +0300 |
commit | b40ccf4a4d1391ba1f67a159697fea859e2a92fd (patch) | |
tree | 44d9638a98db6513ff450ab2839e993c3613c03b /telegram/commands.go | |
parent | 4532748c8458971151dfb6b535b11b2a3e17a372 (diff) |
Fix presences sent with no resource
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/telegram/commands.go b/telegram/commands.go index c4b5988..19fd655 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -185,12 +185,8 @@ func keyValueString(key, value string) string { } func (c *Client) unsubscribe(chatID int64) error { - return gateway.SendPresence( - c.xmpp, - c.jid, - gateway.SPFrom(strconv.FormatInt(chatID, 10)), - gateway.SPType("unsubscribed"), - ) + args := gateway.SimplePresence(chatID, "unsubscribed") + return c.sendPresence(args...) } func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) { |