mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed display of bottom info in media with overridden edited date.
This commit is contained in:
@@ -602,10 +602,8 @@ BottomInfo::Data BottomInfoDataFromMessage(not_null<Message*> message) {
|
||||
result.author = msgsigned->author;
|
||||
}
|
||||
}
|
||||
if (!item->hideEditedBadge()) {
|
||||
if (const auto edited = message->displayedEditBadge()) {
|
||||
result.flags |= Flag::Edited;
|
||||
}
|
||||
if (message->displayedEditDate()) {
|
||||
result.flags |= Flag::Edited;
|
||||
}
|
||||
if (const auto views = item->Get<HistoryMessageViews>()) {
|
||||
if (views->views.count >= 0) {
|
||||
|
@@ -869,10 +869,6 @@ ClickHandlerPtr Element::rightActionLink() const {
|
||||
return ClickHandlerPtr();
|
||||
}
|
||||
|
||||
bool Element::displayEditedBadge() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
TimeId Element::displayedEditDate() const {
|
||||
return TimeId(0);
|
||||
}
|
||||
|
@@ -380,7 +380,6 @@ public:
|
||||
int top,
|
||||
int outerWidth) const;
|
||||
[[nodiscard]] virtual ClickHandlerPtr rightActionLink() const;
|
||||
[[nodiscard]] virtual bool displayEditedBadge() const;
|
||||
[[nodiscard]] virtual TimeId displayedEditDate() const;
|
||||
[[nodiscard]] virtual bool hasVisibleText() const;
|
||||
[[nodiscard]] virtual HistoryMessageReply *displayedReply() const;
|
||||
|
@@ -3073,10 +3073,6 @@ void Message::refreshInfoSkipBlock() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Message::displayEditedBadge() const {
|
||||
return (displayedEditDate() != TimeId(0));
|
||||
}
|
||||
|
||||
TimeId Message::displayedEditDate() const {
|
||||
const auto item = message();
|
||||
const auto overrided = media() && media()->overrideEditedDate();
|
||||
|
@@ -118,7 +118,6 @@ public:
|
||||
int top,
|
||||
int outerWidth) const override;
|
||||
[[nodiscard]] ClickHandlerPtr rightActionLink() const override;
|
||||
[[nodiscard]] bool displayEditedBadge() const override;
|
||||
[[nodiscard]] TimeId displayedEditDate() const override;
|
||||
[[nodiscard]] HistoryMessageReply *displayedReply() const override;
|
||||
[[nodiscard]] bool toggleSelectionByHandlerClick(
|
||||
|
Reference in New Issue
Block a user