Fix guestbots appearing in participants.

This commit is contained in:
John Preston
2026-05-11 14:36:34 +04:00
parent 5e2afcb055
commit d894beec6f
+1 -1
View File
@@ -1049,7 +1049,7 @@ not_null<HistoryItem*> History::addNewToBack(
}
const auto from = item->from();
const auto guestMessage = item->Has<HistoryMessageGuestChat>();
if (const auto user = guestMessage ? from->asUser() : nullptr) {
if (const auto user = guestMessage ? nullptr : from->asUser()) {
const auto lastAuthors = [&]() -> std::deque<not_null<UserData*>>* {
if (auto chat = peer->asChat()) {
return &chat->lastAuthors;