mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Don't show yourself in notification exceptions.
This commit is contained in:
parent
e34e640dbb
commit
119f7e757d
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ constexpr auto kMaxNotifyCheckDelay = 24 * 3600 * crl::time(1000);
|
|||
|
||||
[[nodiscard]] bool SkipAddException(not_null<PeerData*> peer) {
|
||||
if (const auto user = peer->asUser()) {
|
||||
return user->isInaccessible();
|
||||
return user->isInaccessible() || user->isSelf();
|
||||
} else if (const auto chat = peer->asChat()) {
|
||||
return chat->isDeactivated() || chat->isForbidden();
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue