Fixed duplicated transcribe buttons for video messages.

Fixed #25327.
This commit is contained in:
23rd 2022-11-10 12:30:10 +03:00 committed by John Preston
parent 2b7b278b52
commit 8b570f2e8f

View file

@ -678,7 +678,7 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
: InfoDisplayType::Image));
}
if (const auto size = bubble ? std::nullopt : _parent->rightActionSize()
; size || _transcribe) {
; size || (_transcribe && !rightAligned)) {
const auto rightActionWidth = size
? size->width()
: _transcribe->size().width();
@ -702,7 +702,7 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
paintTranscribe(p, fastShareLeft, fastShareTop, true, context);
}
}
if (_parent->hasOutLayout() && _transcribe) {
if (rightAligned && _transcribe) {
paintTranscribe(p, usex, fullBottom, false, context);
}
}