diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index c23a6e2df5..f5857ca09f 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -775,7 +775,7 @@ void HistoryItem::sendFailed() { } bool HistoryItem::needCheck() const { - return out() || (id < 0 && history()->peer->isSelf()); + return (out() && !isEmpty()) || (id < 0 && history()->peer->isSelf()); } bool HistoryItem::unread() const { diff --git a/Telegram/SourceFiles/history/history_service.cpp b/Telegram/SourceFiles/history/history_service.cpp index 4d6dd048d1..8f7f733fe0 100644 --- a/Telegram/SourceFiles/history/history_service.cpp +++ b/Telegram/SourceFiles/history/history_service.cpp @@ -792,9 +792,7 @@ bool HistoryService::updateDependencyItem() { } bool HistoryService::needCheck() const { - return out() - && ((GetDependentData() != nullptr) - || Has()); + return out() && !isEmpty(); } QString HistoryService::inDialogsText(DrawInDialog way) const {