mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-26 19:14:02 +02:00
Add sent/read checks for some service messages.
This commit is contained in:
parent
91a2ec225a
commit
167a73ef1b
3 changed files with 7 additions and 4 deletions
|
@ -617,6 +617,11 @@ bool HistoryService::updateDependencyItem() {
|
||||||
return HistoryItem::updateDependencyItem();
|
return HistoryItem::updateDependencyItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool HistoryService::needCheck() const {
|
||||||
|
return (GetDependentData() != nullptr)
|
||||||
|
|| Has<HistoryServiceSelfDestruct>();
|
||||||
|
}
|
||||||
|
|
||||||
QString HistoryService::inDialogsText(DrawInDialog way) const {
|
QString HistoryService::inDialogsText(DrawInDialog way) const {
|
||||||
return textcmdLink(1, TextUtilities::Clean(notificationText()));
|
return textcmdLink(1, TextUtilities::Clean(notificationText()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,9 +95,7 @@ public:
|
||||||
|
|
||||||
Storage::SharedMediaTypesMask sharedMediaTypes() const override;
|
Storage::SharedMediaTypesMask sharedMediaTypes() const override;
|
||||||
|
|
||||||
bool needCheck() const override {
|
bool needCheck() const override;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
bool serviceMsg() const override {
|
bool serviceMsg() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2d674eff931c2540147e4f1ac29965e90ab4af22
|
Subproject commit 4f22126e7e855b517857408abf2467cba163a6f2
|
Loading…
Add table
Reference in a new issue