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