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;