Skip to content

Commit

Permalink
Don't show yourself in notification exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 1, 2023
1 parent e34e640 commit 119f7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/notify/data_notify_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 119f7e7

Please sign in to comment.