From d894beec6fc629c909d406701e22e857698b2def Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 11 May 2026 14:36:34 +0400 Subject: [PATCH] Fix guestbots appearing in participants. --- Telegram/SourceFiles/history/history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index e0b3e6480e..e96f89ec8f 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -1049,7 +1049,7 @@ not_null History::addNewToBack( } const auto from = item->from(); const auto guestMessage = item->Has(); - if (const auto user = guestMessage ? from->asUser() : nullptr) { + if (const auto user = guestMessage ? nullptr : from->asUser()) { const auto lastAuthors = [&]() -> std::deque>* { if (auto chat = peer->asChat()) { return &chat->lastAuthors;