From a0c787468b9fc09fe2b9022f30171bf3dd2c7982 Mon Sep 17 00:00:00 2001 From: AlexeyZavar Date: Fri, 19 Apr 2024 01:50:45 +0300 Subject: [PATCH] fix: don't hide messages if it's a dialog with blocked user --- Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp b/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp index 24560472f..2169aad9a 100644 --- a/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp +++ b/Telegram/SourceFiles/ayu/utils/telegram_helpers.cpp @@ -171,7 +171,8 @@ bool isMessageHidden(const not_null item) { if (settings->hideFromBlocked) { if (item->from()->isUser() && item->from()->asUser()->isBlocked()) { - return true; + // don't hide messages if it's a dialog with blocked user + return item->from()->asUser()->id != item->history()->peer->id; } if (const auto forwarded = item->Get()) {