mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed info display for last messages in Saved Messages.
This commit is contained in:
parent
161e51757c
commit
f4a63e1e9d
2 changed files with 3 additions and 2 deletions
|
@ -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()) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue