瀏覽代碼

Do not mark channel as unread when receiving chat history

Ivan Savenko 1 年之前
父節點
當前提交
fa31e9f69b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 	}
 }