mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Don't always show timestamps on large custom-emoji-only messages.
This commit is contained in:
parent
5c43a541d7
commit
cf4b869c27
2 changed files with 5 additions and 3 deletions
|
@ -292,6 +292,10 @@ void CustomEmoji::paintCustom(
|
|||
}
|
||||
}
|
||||
|
||||
bool CustomEmoji::alwaysShowOutTimestamp() {
|
||||
return (_lines.size() == 1) && _lines.back().size() > 2;
|
||||
}
|
||||
|
||||
bool CustomEmoji::hasHeavyPart() const {
|
||||
return _hasHeavyPart;
|
||||
}
|
||||
|
|
|
@ -50,9 +50,7 @@ public:
|
|||
const QRect &r) override;
|
||||
ClickHandlerPtr link() override;
|
||||
|
||||
bool alwaysShowOutTimestamp() override {
|
||||
return true;
|
||||
}
|
||||
bool alwaysShowOutTimestamp() override;
|
||||
bool hasTextForCopy() const override {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue