mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 18:10:35 +00:00
Don't show yourself in notification exceptions.
This commit is contained in:
parent
e34e640dbb
commit
119f7e757d
@ -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…
Reference in New Issue
Block a user