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:
parent
c2f160326c
commit
fa31e9f69b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user