SES-3510 - Removed debug toasts

pull/1710/head
ThomasSession 4 weeks ago
parent ab0fa396e8
commit 65392cd8e5

@ -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

Loading…
Cancel
Save