Fix crash in messages with hidden senders.

This commit is contained in:
John Preston
2025-10-12 11:59:11 +04:00
parent 2cbaa7b03d
commit 9ba2426c02
@@ -903,10 +903,12 @@ void Reply::paint(
if (namew > 0) {
p.setPen(!inBubble
? st->msgImgReplyBarColor()->c
: FromNameFg(
: (colorCollectible || colorIndexPlusOne)
? FromNameFg(
context,
colorIndexPlusOne - 1,
colorCollectible));
colorCollectible)
: stm->msgServiceFg->c);
_name.drawLeftElided(
p,
x + st::historyReplyPadding.left() + previewSkip,