Don't show yourself in notification exceptions.

This commit is contained in:
John Preston 2023-09-01 10:52:30 +04:00
parent e34e640dbb
commit 119f7e757d
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {