Removed info display for last messages in Saved Messages.

This commit is contained in:
23rd 2020-04-13 12:55:29 +03:00 committed by John Preston
parent 161e51757c
commit f4a63e1e9d
2 changed files with 3 additions and 2 deletions

View File

@ -286,7 +286,7 @@ bool Element::isUnderCursor() const {
} }
bool Element::isLastAndSelfMessage() const { bool Element::isLastAndSelfMessage() const {
if (!hasOutLayout()) { if (!hasOutLayout() || data()->_history->peer->isSelf()) {
return false; return false;
} }
if (const auto last = data()->_history->lastMessage()) { if (const auto last = data()->_history->lastMessage()) {

View File

@ -1462,7 +1462,8 @@ bool Gif::needInfoDisplay() const {
return _parent->data()->isSending() return _parent->data()->isSending()
|| _data->uploading() || _data->uploading()
|| _parent->isUnderCursor() || _parent->isUnderCursor()
|| _parent->isLastAndSelfMessage(); // Don't show the GIF badge if this message has text.
|| (!_parent->hasBubble() && _parent->isLastAndSelfMessage());
} }
bool Gif::needCornerStatusDisplay() const { bool Gif::needCornerStatusDisplay() const {