Add sent/read checks for some service messages.

This commit is contained in:
John Preston 2020-11-09 12:36:15 +03:00
parent 91a2ec225a
commit 167a73ef1b
3 changed files with 7 additions and 4 deletions

View file

@ -617,6 +617,11 @@ bool HistoryService::updateDependencyItem() {
return HistoryItem::updateDependencyItem();
}
bool HistoryService::needCheck() const {
return (GetDependentData() != nullptr)
|| Has<HistoryServiceSelfDestruct>();
}
QString HistoryService::inDialogsText(DrawInDialog way) const {
return textcmdLink(1, TextUtilities::Clean(notificationText()));
}

View file

@ -95,9 +95,7 @@ public:
Storage::SharedMediaTypesMask sharedMediaTypes() const override;
bool needCheck() const override {
return false;
}
bool needCheck() const override;
bool serviceMsg() const override {
return true;
}

@ -1 +1 @@
Subproject commit 2d674eff931c2540147e4f1ac29965e90ab4af22
Subproject commit 4f22126e7e855b517857408abf2467cba163a6f2