Correct if condition

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-09-12 09:43:37 +02:00
parent 1bbc7caeee
commit 7c09a86c4d
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E

View File

@ -2725,8 +2725,8 @@ class ChatController(args: Bundle) :
}
private fun startACall(isVoiceOnlyCall: Boolean, callWithoutNotification: Boolean) {
val apu = ParticipantPermissions(conversationUser!!, currentConversation!!)
if (apu.canStartCall() && currentConversation?.hasCall == false) {
val pp = ParticipantPermissions(conversationUser!!, currentConversation!!)
if (!pp.canStartCall() && currentConversation?.hasCall == false) {
Toast.makeText(context, R.string.startCallForbidden, Toast.LENGTH_LONG).show()
} else {
ApplicationWideCurrentRoomHolder.getInstance().isDialing = true