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

Implemented loading of latest messages on joining chat

This commit is contained in:
Ivan Savenko
2023-11-12 16:35:53 +02:00
parent f10b6df989
commit 07fb313765
5 changed files with 122 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ void NetworkServer::connectionAccepted(std::shared_ptr<NetworkSocket> upcomingCo
auto connection = std::make_shared<NetworkConnection>(upcomingConnection, *this);
connections.insert(connection);
connection->start();
onNewConnection(connection);
startAsyncAccept();
}