diff --git a/client/globalLobby/GlobalLobbyClient.cpp b/client/globalLobby/GlobalLobbyClient.cpp index 9a29ddae3..ad33f91df 100644 --- a/client/globalLobby/GlobalLobbyClient.cpp +++ b/client/globalLobby/GlobalLobbyClient.cpp @@ -171,7 +171,7 @@ void GlobalLobbyClient::receiveChatMessage(const JsonNode & json) lobbyWindowPtr->onGameChatMessage(message.displayName, message.messageText, message.timeFormatted, channelType, channelName); lobbyWindowPtr->refreshChatText(); - if(channelType == "player" || lobbyWindowPtr->isChannelOpen(channelType, channelName)) + if(channelType == "player" || (lobbyWindowPtr->isChannelOpen(channelType, channelName) && lobbyWindowPtr->isActive())) CCS->soundh->playSound(AudioPath::builtin("CHAT")); } }