From 73c0ea4b7d7a4fb2a770cb37b8542bf61295b013 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 16 Sep 2021 10:50:15 +0300 Subject: [PATCH] Don't mark as read when forwarding to scheduled. --- Telegram/SourceFiles/apiwrap.cpp | 5 +++-- Telegram/lib_ui | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index de7d8aa58..2cf8b0e8d 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -3653,8 +3653,9 @@ void ApiWrap::forwardMessages( const auto history = action.history; const auto peer = history->peer; - histories.readInbox(history); - + if (!action.options.scheduled) { + histories.readInbox(history); + } const auto anonymousPost = peer->amAnonymous(); const auto silentPost = ShouldSendSilent(peer, action.options); diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 2d53ef070..a8a4cc8c1 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 2d53ef070f3dee5f36246c2c7ce830f755847344 +Subproject commit a8a4cc8c1a91e9120d5782d35ae3d6ab58dbb8fc