summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-04 19:58:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-04 19:58:38 +0300
commitd69c39adad9038702c055363c2f0dcf8e4fe7b8f (patch)
tree9e2bd4e08635ecc73f43ad870cd338a116220eb2 /protocols/Telegram/src
parentfbab4b0247801a88a05256d94edd15ae49380182 (diff)
Telegram: timestamp added to group chat events
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r--protocols/Telegram/src/groupchat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/groupchat.cpp b/protocols/Telegram/src/groupchat.cpp
index eba04b206d..69a4ca7649 100644
--- a/protocols/Telegram/src/groupchat.cpp
+++ b/protocols/Telegram/src/groupchat.cpp
@@ -294,6 +294,7 @@ void CTelegramProto::GcChangeMember(TG_USER *pChat, TD::int53 userId, bool bJoin
gce.pszUID.w = wszId;
gce.pszNick.w = wszNick;
gce.bIsMe = false;
+ gce.time = time(0);
gce.pszStatus.w = TranslateT("Visitor");
Chat_Event(&gce);
}
@@ -306,6 +307,7 @@ void CTelegramProto::GcChangeTopic(TG_USER *pChat, const wchar_t *pwszNewTopic)
GCEVENT gce = { pChat->m_si, GC_EVENT_TOPIC };
gce.pszText.w = pwszNewTopic;
+ gce.time = time(0);
Chat_Event(&gce);
}
@@ -430,6 +432,7 @@ void CTelegramProto::ProcessSuperGroup(TD::updateSupergroup *pObj)
GCEVENT gce = { si, GC_EVENT_SETSTATUS };
gce.pszUID.w = wszUserId;
+ gce.time = time(0);
gce.pszStatus.w = getRoleById(iStatusId);
Chat_Event(&gce);
}