|
@@ -358,16 +358,11 @@ public class ServerEventHandler extends EventHandler implements
|
358
|
358
|
|
359
|
359
|
owner.updateAwayState(currentState == AwayState.AWAY ? Optional.of(reason) : Optional.empty());
|
360
|
360
|
|
361
|
|
- if (oldState == AwayState.UNKNOWN) {
|
362
|
|
- // Ignore discovered self away states
|
363
|
|
- return;
|
364
|
|
- }
|
365
|
|
-
|
366
|
361
|
if (currentState == AwayState.AWAY) {
|
367
|
362
|
final ServerAwayEvent event = new ServerAwayEvent(owner, reason);
|
368
|
363
|
final String format = EventUtils.postDisplayable(eventBus, event, "away");
|
369
|
364
|
owner.doNotification(format, reason);
|
370
|
|
- } else {
|
|
365
|
+ } else if (oldState != AwayState.UNKNOWN) {
|
371
|
366
|
final ServerBackEvent event = new ServerBackEvent(owner);
|
372
|
367
|
final String format = EventUtils.postDisplayable(eventBus, event, "back");
|
373
|
368
|
owner.doNotification(format);
|