mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Hide native notifications of deleted messages.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user