Skip to content

Commit

Permalink
show reconnect message in console and private chats
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatinb committed Aug 29, 2022
1 parent a14d002 commit 6a46126
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ class ChatRoomController {
}

void rejoinRoom() {
runInsideUIAsync {
long timestamp = System.currentTimeMillis()
String toDisplay = DataHelper.formatTime(timestamp) + " " + trans("YOU_RECONNECTED") + "\n"
view.appendGreen(toDisplay)
trimLines()
}

if (model.console || model.privateChat)
return

Expand All @@ -289,13 +296,6 @@ class ChatRoomController {
sig : sig
)
model.core.eventBus.publish(event)

runInsideUIAsync {
long timestamp = System.currentTimeMillis()
String toDisplay = DataHelper.formatTime(timestamp) + " " + trans("YOU_RECONNECTED") + "\n"
view.appendGreen(toDisplay)
trimLines()
}
}

void serverDisconnected() {
Expand Down

0 comments on commit 6a46126

Please sign in to comment.