show reconnect message in console and private chats

java-i2p-warning
Zlatin Balevsky 2022-08-29 13:00:39 +01:00
parent a14d0023b2
commit 6a4612610f
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 7 additions and 7 deletions

View File

@ -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() {