Merge pull request #4366 from nextcloud/backport/4359/stable-20.0

[stable-20.0] Remove dead code to set the call state
This commit is contained in:
Marcel Hibbe 2024-10-23 12:19:05 +02:00 committed by GitHub
commit f14e849ea5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -393,11 +393,9 @@ class CallActivity : CallBaseActivity() {
baseUrl = conversationUser!!.baseUrl
}
powerManagerUtils = PowerManagerUtils()
if ("resume".equals(extras.getString("state", ""), ignoreCase = true)) {
setCallState(CallStatus.IN_CONVERSATION)
} else {
setCallState(CallStatus.CONNECTING)
}
setCallState(CallStatus.CONNECTING)
raiseHandViewModel = ViewModelProvider(this, viewModelFactory).get(RaiseHandViewModel::class.java)
raiseHandViewModel!!.setData(roomToken!!, isBreakoutRoom)
raiseHandViewModel!!.viewState.observe(this) { viewState: RaiseHandViewModel.ViewState? ->