1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

changed layout

This commit is contained in:
Laserlicht
2024-04-30 21:52:04 +02:00
parent 0565c062e5
commit 78b8c2c71c
4 changed files with 53 additions and 69 deletions

View File

@@ -15,7 +15,6 @@
#include "PlayerLocalState.h"
#include "globalLobby/GlobalLobbyClient.h"
#include "lobby/CLobbyScreen.h"
#include "lobby/CSelectionBase.h"
#include "adventureMap/CInGameConsole.h"
@@ -74,11 +73,8 @@ void GameChatHandler::onNewLobbyMessageReceived(const std::string & senderName,
formatted.replaceRawString(messageText);
lobby->card->chat->addNewMessage(formatted.toString());
if (lobby->card->chatMode != InfoCard::ChatMode::Enabled)
{
lobby->card->setChat(InfoCard::ChatMode::Disabled);
lobby->toggleChat();
}
if (!lobby->card->showChat)
lobby->toggleChat();
}
chatHistory.push_back({senderName, messageText, TextOperations::getCurrentFormattedTimeLocal()});