mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 (settings->hideFromBlocked) {
|
||||||
if (item->from()->isUser() &&
|
if (item->from()->isUser() &&
|
||||||
item->from()->asUser()->isBlocked()) {
|
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>()) {
|
if (const auto forwarded = item->Get<HistoryMessageForwarded>()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue