From 15ffd428da97b583f827c5fc0caf180b0510ce05 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 Mar 2025 16:11:59 +0300 Subject: fixes #4920 ([Telegram] Events are not marked as read) --- protocols/Telegram/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Telegram/src/utils.cpp') diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 839da0fcfb..c266b9dd55 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -239,7 +239,7 @@ void CTelegramProto::MarkRead(MCONTACT hContact, const CMStringA &szMaxId, bool if (dbei.bSent != bSent) continue; - if (!dbei.markedRead()) + if (!dbei.bRead) db_event_markRead(hContact, hEvent, true); } } @@ -497,7 +497,7 @@ bool CTelegramProto::GetMessageFile(const EmbeddedFile &F, TG_FILE_REQUEST::Type dbei.szId = F.pszId; dbei.szUserId = F.pszUser; if (F.pMsg->is_outgoing_) - dbei.flags |= DBEF_SENT; + dbei.flags |= DBEF_SENT | DBEF_READ; if (!F.pUser->bInited || F.bRead) dbei.flags |= DBEF_READ; if (auto iReplyId = getReplyId(F.pMsg->reply_to_.get())) { -- cgit v1.2.3