diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-31 17:31:05 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-31 17:31:05 +0300 |
commit | 3cdb625c5edb90ad6c55bacc2daea51385952750 (patch) | |
tree | ea65e10369eda6583b9508094ffe421f548b8062 /telegram/handlers.go | |
parent | 8c20aaa30d2ca7483e56c2a3cb95e83a051013ea (diff) |
Mark expired online statuses as away
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r-- | telegram/handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go index 63f981f..4b44463 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -119,13 +119,13 @@ func (c *Client) updateHandler() { // new user discovered func (c *Client) updateUser(update *client.UpdateUser) { c.cache.SetUser(update.User.Id, update.User) - show, status := c.userStatusToText(update.User.Status) + show, status := c.userStatusToText(update.User.Status, update.User.Id) go c.ProcessStatusUpdate(update.User.Id, status, show) } // user status changed func (c *Client) updateUserStatus(update *client.UpdateUserStatus) { - show, status := c.userStatusToText(update.Status) + show, status := c.userStatusToText(update.Status, update.UserId) go c.ProcessStatusUpdate(update.UserId, status, show, gateway.SPImmed(false)) } |