mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Removed info display for last messages in Saved Messages.
This commit is contained in:
parent
161e51757c
commit
f4a63e1e9d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user