Skip to content

Commit

Permalink
Fix crash when resuming the call from the notification. Fixes #3905
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Nov 22, 2024
1 parent 5a6525a commit d577584
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,14 @@ class ElementCallActivity :
Timber.tag(loggerTag.value).d("Set the call type and create the presenter")
webViewTarget.value = callType
presenter = presenterFactory.create(callType!!, this)
} else if (callType == null) {
Timber.tag(loggerTag.value).d("Coming back from notification, do nothing")
} else if (callType != currentCallType) {
Timber.tag(loggerTag.value).d("User starts another call, restart the Activity")
setIntent(intent)
recreate()
} else {
Timber.tag(loggerTag.value).d("Coming back from notification, do nothing")
Timber.tag(loggerTag.value).d("Other case, do nothing")
}
}

Expand Down

0 comments on commit d577584

Please sign in to comment.