mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
avoid NPE when initializing chat permission
currentConversation could have been null when opening the ChatController from notification. hasChatPermission is now only set in getRoomInfo Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
fd9637891c
commit
7ae5413308
1 changed files with 0 additions and 3 deletions
|
@ -312,9 +312,6 @@ class ChatController(args: Bundle) :
|
|||
}
|
||||
|
||||
this.voiceOnly = args.getBoolean(BundleKeys.KEY_CALL_VOICE_ONLY, false)
|
||||
|
||||
hasChatPermission =
|
||||
AttendeePermissionsUtil(currentConversation!!.permissions).hasChatPermission(conversationUser)
|
||||
}
|
||||
|
||||
private fun getRoomInfo() {
|
||||
|
|
Loading…
Reference in a new issue