Fixed display of loading progress in voice messages with ttl.

This commit is contained in:
23rd 2024-01-20 15:58:03 +03:00 committed by John Preston
parent 8eb49d5efc
commit 15e2874da8

View file

@ -727,9 +727,6 @@ void Document::draw(
auto hq = PainterHighQualityEnabler(p); auto hq = PainterHighQualityEnabler(p);
p.setBrush(stm->msgFileBg); p.setBrush(stm->msgFileBg);
p.drawEllipse(inner); p.drawEllipse(inner);
if (hasTtlBadge) {
p.drawEllipse(ttlRect);
}
} }
} }
@ -801,6 +798,9 @@ void Document::draw(
if (hasTtlBadge) { if (hasTtlBadge) {
{ {
auto hq = PainterHighQualityEnabler(q); auto hq = PainterHighQualityEnabler(q);
p.setBrush(stm->msgFileBg);
q.setPen(Qt::NoPen);
p.drawEllipse(ttlRect);
auto pen = stm->msgBg->p; auto pen = stm->msgBg->p;
pen.setWidthF(style::ConvertScaleExact(kPenWidth)); pen.setWidthF(style::ConvertScaleExact(kPenWidth));
q.setPen(pen); q.setPen(pen);