Removed info display for last messages in Saved Messages.

Этот коммит содержится в:
23rd 2020-04-13 12:55:29 +03:00 коммит произвёл John Preston
родитель 161e51757c
Коммит f4a63e1e9d
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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