Develop #1

Merged
Meraj merged 3 commits from develop into main 2026-07-31 23:57:38 +00:00
Showing only changes of commit 0f0d2a88e0 - Show all commits
@@ -73,6 +73,7 @@ public class ClientSession implements Runnable {
// 6. Otherwise, create the user's folders with FileManager.createUserFolders(...) // 6. Otherwise, create the user's folders with FileManager.createUserFolders(...)
// and send back LOGIN_SUCCESS. // and send back LOGIN_SUCCESS.
this.username = requestedUser; this.username = requestedUser;
FileManager.createUserFolders(username);
out.writeObject(new ChatMessage(MessageType.LOGIN_SUCCESS, "Server", null, "Welcome "+username)); out.writeObject(new ChatMessage(MessageType.LOGIN_SUCCESS, "Server", null, "Welcome "+username));
out.flush(); out.flush();
System.out.println("User logged in: "+username); System.out.println("User logged in: "+username);