mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
Simplify assignment
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
b07aaee140
commit
3efcbe2a39
1 changed files with 5 additions and 7 deletions
|
@ -2151,12 +2151,10 @@ class ChatController(args: Bundle) :
|
|||
return
|
||||
}
|
||||
|
||||
webSocketInstance =
|
||||
if (WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!) != null) {
|
||||
WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!)
|
||||
} else {
|
||||
webSocketInstance = WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!)
|
||||
|
||||
if (webSocketInstance == null) {
|
||||
Log.d(TAG, "magicWebSocketInstance became null")
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue