Always show check marks on outgoing service messages.
This commit is contained in:
parent
3cd05a34d9
commit
c935f1bb16
|
@ -775,7 +775,7 @@ void HistoryItem::sendFailed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryItem::needCheck() const {
|
bool HistoryItem::needCheck() const {
|
||||||
return out() || (id < 0 && history()->peer->isSelf());
|
return (out() && !isEmpty()) || (id < 0 && history()->peer->isSelf());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryItem::unread() const {
|
bool HistoryItem::unread() const {
|
||||||
|
|
|
@ -792,9 +792,7 @@ bool HistoryService::updateDependencyItem() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryService::needCheck() const {
|
bool HistoryService::needCheck() const {
|
||||||
return out()
|
return out() && !isEmpty();
|
||||||
&& ((GetDependentData() != nullptr)
|
|
||||||
|| Has<HistoryServiceSelfDestruct>());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString HistoryService::inDialogsText(DrawInDialog way) const {
|
QString HistoryService::inDialogsText(DrawInDialog way) const {
|
||||||
|
|
Loading…
Reference in New Issue