Merge pull request #2710 from nextcloud/bugfix/noid/avoidNpeWhenAnswerCall

avoid crash when answering call
This commit is contained in:
Marcel Hibbe 2023-01-20 09:42:51 +01:00 committed by GitHub
commit c17657ab8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,6 +153,7 @@ class CallNotificationActivity : CallBaseActivity() {
}
private fun proceedToCall() {
if (currentConversation != null) {
originalBundle!!.putString(KEY_ROOM_TOKEN, currentConversation!!.token)
originalBundle!!.putString(KEY_CONVERSATION_NAME, currentConversation!!.displayName)
@ -172,6 +173,9 @@ class CallNotificationActivity : CallBaseActivity() {
val intent = Intent(this, CallActivity::class.java)
intent.putExtras(originalBundle!!)
startActivity(intent)
} else {
Log.w(TAG, "conversation was still null when clicked to answer call. User has to click another time.")
}
}
@Suppress("MagicNumber")