work on archived chats

This commit is contained in:
2025-07-24 21:48:49 +03:30
parent c11092c7c6
commit 5b9e02bbdf
8 changed files with 271 additions and 11 deletions
@@ -3,13 +3,17 @@ package org.to.telegramfinalproject.Client;
import org.json.JSONObject;
import org.to.telegramfinalproject.Models.ChatEntry;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
// method for save data from server response
public class Session {
public static JSONObject currentUser;
public static List<ChatEntry> chatList;
public static List<UUID> archivedChatIds = new ArrayList<>();
public static String getUserUUID() {
if (currentUser.has("uuid")) return currentUser.getString("uuid");