Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-07-13 15:03:59 +02:00
parent d450ae7897
commit 89aacbae95
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -335,16 +335,16 @@ class WebSocketInstance internal constructor(
webSocket.send(messagesQueue[i]) webSocket.send(messagesQueue[i])
} }
messagesQueue = ArrayList() messagesQueue = ArrayList()
val helloHasHap = HashMap<String, String?>() val helloHashMap = HashMap<String, String?>()
if (!TextUtils.isEmpty(oldResumeId)) { if (!TextUtils.isEmpty(oldResumeId)) {
helloHasHap["oldResumeId"] = oldResumeId helloHashMap["oldResumeId"] = oldResumeId
} else { } else {
currentRoomToken = "" currentRoomToken = ""
} }
if (!TextUtils.isEmpty(currentRoomToken)) { if (!TextUtils.isEmpty(currentRoomToken)) {
helloHasHap[Globals.ROOM_TOKEN] = currentRoomToken helloHashMap[Globals.ROOM_TOKEN] = currentRoomToken
} }
eventBus!!.post(WebSocketCommunicationEvent("hello", helloHasHap)) eventBus!!.post(WebSocketCommunicationEvent("hello", helloHashMap))
} }
private fun sendRoomJoinedEvent() { private fun sendRoomJoinedEvent() {