Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
0d889c15
Commit
0d889c15
authored
Apr 06, 2020
by
helene ortiz
Browse files
use User instead of EndPoint for event sender
parent
104ebf09
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/bridge/events/ChatEvent.java
View file @
0d889c15
...
...
@@ -84,25 +84,7 @@ public class ChatEvent {
}
}
public
String
getFormattedSender
()
{
if
(
formattedSender
==
null
)
{
formattedSender
=
formatEndPoint
(
sender
);
}
return
formattedSender
;
}
public
boolean
comesFromServer
()
{
return
sender
.
equals
(
NOMAD
);
}
public
static
String
formatEndPoint
(
String
endPoint
)
{
String
formattedEndPoint
=
endPoint
.
replace
(
"tcp://"
,
""
);
int
index
=
formattedEndPoint
.
indexOf
(
":"
);
if
(
index
!=
-
1
)
{
formattedEndPoint
=
formattedEndPoint
.
substring
(
0
,
index
);
}
return
formattedEndPoint
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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