diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt index 268e42eae2..13fa99f1fc 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt @@ -2715,11 +2715,11 @@ class CallActivity : CallBaseActivity() { private set private inner class WebRtcMessageListener : SignalingMessageReceiver.WebRtcMessageListener { - override fun onOffer(sdp: String, nick: String) { + override fun onOffer(sdp: String, nick: String?) { onOfferOrAnswer(nick) } - override fun onAnswer(sdp: String, nick: String) { + override fun onAnswer(sdp: String, nick: String?) { onOfferOrAnswer(nick) } @@ -2732,7 +2732,7 @@ class CallActivity : CallBaseActivity() { } } - private fun onOfferOrAnswer(nick: String) { + private fun onOfferOrAnswer(nick: String?) { this.nick = nick if (callParticipants[sessionId] != null) { callParticipants[sessionId]!!.setNick(nick)