Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
b8b9a332
Commit
b8b9a332
authored
Apr 02, 2020
by
helene ortiz
Browse files
temporaire
parent
847744ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/bridge/events/ChatEvent.java
View file @
b8b9a332
...
...
@@ -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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment