1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Server functionality

This commit is contained in:
Laserlicht
2024-04-30 01:52:49 +02:00
parent f4d1442a86
commit 0565c062e5
9 changed files with 78 additions and 2 deletions

View File

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