From 3d30ed65f9e226b7b183b23ce5dba435ec491f0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 Jan 2025 18:28:28 +0300 Subject: DBEVENTINFO::timestamp to become 64-bit integer --- protocols/Telegram/src/utils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Telegram/src/utils.cpp') diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 240322d81e..3d33b6b0c8 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -217,8 +217,7 @@ void CTelegramProto::MarkRead(MCONTACT hContact, const CMStringA &szMaxId, bool if (dbei.szId > szMaxId) break; - bool isSent = (dbei.flags & DBEF_SENT) != 0; - if (isSent != bSent) + if (dbei.bSent != bSent) continue; if (!dbei.markedRead()) @@ -462,7 +461,7 @@ bool CTelegramProto::GetMessageFile(const EmbeddedFile &F, TG_FILE_REQUEST::Type DB::EventInfo dbei(db_event_getById(m_szModuleName, F.pszId)); dbei.flags = DBEF_TEMPORARY; - dbei.timestamp = F.pMsg->date_; + dbei.iTimestamp = F.pMsg->date_; dbei.szId = F.pszId; dbei.szUserId = F.pszUser; if (F.pMsg->is_outgoing_) -- cgit v1.2.3