Fixed display of message highlights in selection mode.

This commit is contained in:
23rd 2024-10-14 06:04:19 +03:00 committed by John Preston
parent 54b0d965ae
commit 9ea78f7d28

View file

@ -1193,10 +1193,18 @@ void Message::draw(Painter &p, const PaintContext &context) const {
}
}
if (customHighlight) {
media->drawHighlight(p, context, localMediaTop);
} else {
paintHighlight(p, context, fullGeometry.height());
{
if (selectionTranslation) {
p.translate(-selectionTranslation, 0);
}
if (customHighlight) {
media->drawHighlight(p, context, localMediaTop);
} else {
paintHighlight(p, context, fullGeometry.height());
}
if (selectionTranslation) {
p.translate(selectionTranslation, 0);
}
}
const auto roll = media ? media->bubbleRoll() : Media::BubbleRoll();