Browse Source

Do not mark channel as unread when receiving chat history

Ivan Savenko 1 year ago
parent
commit
fa31e9f69b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/globalLobby/GlobalLobbyClient.cpp

+ 1 - 1
client/globalLobby/GlobalLobbyClient.cpp

@@ -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);
 	}
 }