summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-15 20:37:52 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-15 20:37:52 +0300
commit41dd36073f850e180d23924b3a6f7749ccd17e4a (patch)
tree71624f107ee0200c824979bb70db257cc44870a0 /protocols/Telegram/src/proto.cpp
parent88500a00ea529173f7dc5c4e560211e28a9d9701 (diff)
Telegram: fake Away & N/A statuses became available for an account to allow Telegram to 'sleep'
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index efb92742fb..b0ce821946 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -654,6 +654,8 @@ int CTelegramProto::SetStatus(int iNewStatus)
// Routing statuses not supported by Telegram
switch (iNewStatus) {
case ID_STATUS_OFFLINE:
+ case ID_STATUS_AWAY:
+ case ID_STATUS_NA:
m_iDesiredStatus = iNewStatus;
break;