mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +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();
|
||||
}
|
||||
|
||||
bool HistoryService::needCheck() const {
|
||||
return (GetDependentData() != nullptr)
|
||||
|| Has<HistoryServiceSelfDestruct>();
|
||||
}
|
||||
|
||||
QString HistoryService::inDialogsText(DrawInDialog way) const {
|
||||
return textcmdLink(1, TextUtilities::Clean(notificationText()));
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Submodule Telegram/lib_base updated: 2d674eff93...4f22126e7e
Reference in New Issue
Block a user