Simplify assignment

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2023-01-26 14:12:04 +01:00 committed by Marcel Hibbe
parent b07aaee140
commit 3efcbe2a39
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -2151,12 +2151,10 @@ class ChatController(args: Bundle) :
return return
} }
webSocketInstance = webSocketInstance = WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!)
if (WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!) != null) {
WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!) if (webSocketInstance == null) {
} else {
Log.d(TAG, "magicWebSocketInstance became null") Log.d(TAG, "magicWebSocketInstance became null")
null
} }
} }