2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Hide native notifications of deleted messages.

This commit is contained in:
John Preston
2021-10-15 17:57:27 +04:00
parent 1f95e00793
commit d361f5c6b0
7 changed files with 108 additions and 16 deletions

View File

@@ -162,6 +162,12 @@ public:
struct NotificationId {
FullPeer full;
MsgId msgId = 0;
friend inline bool operator<(
const NotificationId &a,
const NotificationId &b) {
return std::tie(a.full, a.msgId) < std::tie(b.full, b.msgId);
}
};
explicit Manager(not_null<System*> system) : _system(system) {
@@ -275,8 +281,6 @@ protected:
void doClearAll() override {
doClearAllFast();
}
void doClearFromItem(not_null<HistoryItem*> item) override {
}
void doShowNotification(
not_null<HistoryItem*> item,
int forwardedCount) override;
@@ -314,6 +318,8 @@ protected:
}
void doClearAllFast() override {
}
void doClearFromItem(not_null<HistoryItem*> item) override {
}
void doClearFromHistory(not_null<History*> history) override {
}
void doClearFromSession(not_null<Main::Session*> session) override {