mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
bool CustomEmoji::hasHeavyPart() const {
|
||||||
return _hasHeavyPart;
|
return _hasHeavyPart;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,9 +50,7 @@ public:
|
||||||
const QRect &r) override;
|
const QRect &r) override;
|
||||||
ClickHandlerPtr link() override;
|
ClickHandlerPtr link() override;
|
||||||
|
|
||||||
bool alwaysShowOutTimestamp() override {
|
bool alwaysShowOutTimestamp() override;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
bool hasTextForCopy() const override {
|
bool hasTextForCopy() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue