fix: don't hide messages if it's a dialog with blocked user

This commit is contained in:
AlexeyZavar 2024-04-19 01:50:45 +03:00
parent 3f79ccbcaf
commit a0c787468b

View file

@ -171,7 +171,8 @@ bool isMessageHidden(const not_null<HistoryItem*> 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<HistoryMessageForwarded>()) {