From 21b447fe98b236aee208cd9588f51177fdbb2f2a Mon Sep 17 00:00:00 2001 From: Alexandre Gonzalvez Date: Fri, 18 Dec 2020 09:34:06 +0100 Subject: [PATCH] askClosesession --- Application/Clavardage/src/controller/Controller.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Clavardage/src/controller/Controller.java b/Application/Clavardage/src/controller/Controller.java index ac08439..01b578a 100644 --- a/Application/Clavardage/src/controller/Controller.java +++ b/Application/Clavardage/src/controller/Controller.java @@ -379,6 +379,9 @@ public class Controller { return history; } + public void askCloseSession() { + this.activeChat = null; + } public void closeSession(Chat c) { sendMessage(new Msg_Text(myUser.getAddIP(),"end"), c); // tell rm session STOP JOptionPane.showMessageDialog(null ,"Close session with "+c.getRemoteUser().getPseudo()+" loading history");