mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 00:15:42 +00:00
Add sent/read checks for some service messages.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Submodule Telegram/lib_base updated: 2d674eff93...4f22126e7e
Reference in New Issue
Block a user