mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Server functionality
This commit is contained in:
@@ -75,7 +75,10 @@ void GameChatHandler::onNewLobbyMessageReceived(const std::string & senderName,
|
||||
|
||||
lobby->card->chat->addNewMessage(formatted.toString());
|
||||
if (lobby->card->chatMode != InfoCard::ChatMode::Enabled)
|
||||
lobby->card->setChat(InfoCard::ChatMode::Enabled);
|
||||
{
|
||||
lobby->card->setChat(InfoCard::ChatMode::Disabled);
|
||||
lobby->toggleChat();
|
||||
}
|
||||
}
|
||||
|
||||
chatHistory.push_back({senderName, messageText, TextOperations::getCurrentFormattedTimeLocal()});
|
||||
|
||||
Reference in New Issue
Block a user