Send text message Real time updated
This commit is contained in:
@@ -2508,14 +2508,22 @@ public class ActionHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
System.out.println("\n💬 Your Chats:");
|
||||
System.out.println("0. 📦 Archived chats");
|
||||
|
||||
int index = 1;
|
||||
System.out.println("0. Archived chats");
|
||||
for (ChatEntry chat : Session.activeChats) {
|
||||
System.out.printf("%d. [%s] %s (%s)\n", index++, chat.getType(), chat.getName(), chat.getDisplayId());
|
||||
String time = (chat.getLastMessageTime() == null)
|
||||
? "No messages yet"
|
||||
: chat.getLastMessageTime().toString();
|
||||
|
||||
System.out.printf("%d. [%s] %s (%s) - Last: %s\n",
|
||||
index++, chat.getType(), chat.getName(), chat.getDisplayId(), time);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class ChatStateMonitor implements Runnable {
|
||||
private final PrintWriter out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user