load chatlogs on newly created chat

This commit is contained in:
SCM6WE
2021-09-23 14:32:22 +02:00
parent 2ec9ffb30f
commit 154f79667c
2 changed files with 13 additions and 28 deletions

View File

@@ -93,10 +93,10 @@ namespace PolyChat
}
else
{
Debug.WriteLine("---- Added new Connection ----");//Todo show error!
Debug.WriteLine("---- Added new Connection ----");
Connections.Add(ForeignIp, new Connection(socket, Data => OnMessage(ForeignIp, Data), CloseChat));
UIController.OnIncomingConnection(ForeignIp);
fileManager.loadChats(ForeignIp);
fileManager.loadChat(ForeignIp);
}
});
});