From 9ba2426c0219293ca92dd06862b35e581e12975d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 12 Oct 2025 11:59:11 +0400 Subject: [PATCH] Fix crash in messages with hidden senders. --- Telegram/SourceFiles/history/view/history_view_reply.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/history_view_reply.cpp b/Telegram/SourceFiles/history/view/history_view_reply.cpp index ee4f18ed21..4b23f2b6f4 100644 --- a/Telegram/SourceFiles/history/view/history_view_reply.cpp +++ b/Telegram/SourceFiles/history/view/history_view_reply.cpp @@ -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,