summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-16 16:11:59 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-16 16:11:59 +0300
commit15ffd428da97b583f827c5fc0caf180b0510ce05 (patch)
tree72a5bbdaa856c23f1650babac2966747172bf087 /protocols/Telegram/src/utils.cpp
parent3c480b710d82afa7bb4361aa7c7887cecbc62138 (diff)
fixes #4920 ([Telegram] Events are not marked as read)
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r--protocols/Telegram/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
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())) {