mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 14:30:42 +00:00
fix: bug fixes for self-send answer / hangup messages
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user