mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
fix: don't hide messages if it's a dialog with blocked user
This commit is contained in:
parent
3f79ccbcaf
commit
a0c787468b
1 changed files with 2 additions and 1 deletions
|
@ -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>()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue