Commit b8b9a332 authored by helene ortiz's avatar helene ortiz
Browse files

temporaire

parent 847744ec
......@@ -22,6 +22,8 @@ import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import fr.ill.ics.bridge.command.CommandZoneWrapper;
import fr.ill.ics.nscclient.sessionmanagement.SessionManager;
import fr.ill.ics.util.ConfigManager;
/**
......@@ -75,7 +77,11 @@ public class ChatEvent {
}
public boolean comesFromMe() {
return sender.equals(ConfigManager.getInstance().getServerEndpoint());
if (ConfigManager.getInstance().isMainClient()) {
return sender.equals(SessionManager.getInstance(CommandZoneWrapper.SERVER_ID).getInstrumentName());
} else {
return sender.equals("toto");
}
}
public String getFormattedSender() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment