mirror of https://github.com/zlatinb/muwire
show reconnect message in console and private chats
parent
a14d0023b2
commit
6a4612610f
|
@ -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
|
||||
|
||||
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue