fix: bug fixes for self-send answer / hangup messages

pull/864/head
jubb 4 years ago
parent 49f2c5f6f0
commit fa4f0809ac

@ -201,6 +201,7 @@ class WebRtcCallActivity: PassphraseRequiredActionBarActivity() {
CALL_RINGING -> {
if (wantsToAnswer) {
answerCall()
wantsToAnswer = false
}
}
CALL_OUTGOING -> {

@ -181,6 +181,7 @@ class CallManager(context: Context, audioManager: AudioManagerCompat, private va
remoteRenderer = SurfaceViewRenderer(context)
localRenderer?.init(base.eglBaseContext, null)
localRenderer?.setMirror(true)
remoteRenderer?.init(base.eglBaseContext, null)
val encoderFactory = DefaultVideoEncoderFactory(base.eglBaseContext, true, true)

@ -29,7 +29,7 @@ class CallMessageProcessor(private val context: Context, lifecycle: Lifecycle, p
val nextMessage = WebRtcUtils.SIGNAL_QUEUE.receive()
Log.d("Loki", nextMessage.type?.name ?: "CALL MESSAGE RECEIVED")
val sender = nextMessage.sender ?: continue
if (!storage.conversationHasOutgoing(sender)) continue
if (!storage.conversationHasOutgoing(sender) && storage.getUserPublicKey() != sender) continue
if (!TextSecurePreferences.isCallNotificationsEnabled(context)) {
Log.d("Loki","Dropping call message if call notifications disabled")

Loading…
Cancel
Save