Browse Source

Do not mark channel as unread when receiving chat history

Ivan Savenko 1 năm trước cách đây
mục cha
commit
fa31e9f69b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 	}
 }