1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Do not mark channel as unread when receiving chat history

This commit is contained in:
Ivan Savenko 2024-03-30 13:50:53 +02:00
parent c2f160326c
commit fa31e9f69b

View File

@ -141,7 +141,7 @@ void GlobalLobbyClient::receiveChatHistory(const JsonNode & json)
chatHistory[channelKey].push_back(message);
if(lobbyWindowPtr)
if(lobbyWindowPtr && lobbyWindowPtr->isChannelOpen(channelType, channelName))
lobbyWindowPtr->onGameChatMessage(message.displayName, message.messageText, message.timeFormatted, channelType, channelName);
}
}