mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +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,13 +2151,11 @@ class ChatController(args: Bundle) :
|
|||
return
|
||||
}
|
||||
|
||||
webSocketInstance =
|
||||
if (WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!) != null) {
|
||||
WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!)
|
||||
} else {
|
||||
Log.d(TAG, "magicWebSocketInstance became null")
|
||||
null
|
||||
}
|
||||
webSocketInstance = WebSocketConnectionHelper.getMagicWebSocketInstanceForUserId(conversationUser.id!!)
|
||||
|
||||
if (webSocketInstance == null) {
|
||||
Log.d(TAG, "magicWebSocketInstance became null")
|
||||
}
|
||||
}
|
||||
|
||||
fun pullChatMessages(lookIntoFuture: Int, setReadMarker: Int = 1, xChatLastCommonRead: Int? = null) {
|
||||
|
|
Loading…
Reference in a new issue