diff --git a/app/src/main/java/org/thoughtcrime/securesms/webrtc/WebRtcCallBridge.kt b/app/src/main/java/org/thoughtcrime/securesms/webrtc/WebRtcCallBridge.kt index f34a1eee86..255cda2cdd 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/webrtc/WebRtcCallBridge.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/webrtc/WebRtcCallBridge.kt @@ -190,7 +190,7 @@ class WebRtcCallBridge @Inject constructor( val recipient = getRecipientFromAddress(address) if (isIncomingMessageExpired(callTime)) { - debugToast("Pre offer expired - message timestamp was deemed expired: ${System.currentTimeMillis() - callTime}s") + Log.d(TAG, "Pre offer expired - message timestamp was deemed expired: ${System.currentTimeMillis() - callTime}s") insertMissedCall(recipient, true) terminate() return@execute @@ -211,14 +211,6 @@ class WebRtcCallBridge @Inject constructor( } } - fun debugToast(message: String) { - if (BuildConfig.BUILD_TYPE != "release") { - ContextCompat.getMainExecutor(context).execute { - Toast.makeText(context, message, Toast.LENGTH_LONG).show() - } - } - } - private fun handleIncomingPreOffer(address: Address, sdp: String, callId: UUID, callTime: Long) { serviceExecutor.execute { val recipient = getRecipientFromAddress(address) @@ -327,7 +319,7 @@ class WebRtcCallBridge @Inject constructor( if (isIncomingMessageExpired(timestamp)) { val didHangup = callManager.postConnectionEvent(Event.TimeOut) { - debugToast("Answer expired - message timestamp was deemed expired: ${System.currentTimeMillis() - timestamp}s") + Log.d(TAG, "Answer expired - message timestamp was deemed expired: ${System.currentTimeMillis() - timestamp}s") insertMissedCall( recipient, true