Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb4fd804 authored by Zixuan Qu's avatar Zixuan Qu
Browse files

Fix a bug in QueryCallStreamingTransaction.

QueryCallStreamingTransaction should complete successfully when
there's no ongoing streaming call.

Bug: 270575748
Test: manual tests
Change-Id: Ia75f0c1529442ad7c14a0bc2ffd1bd69b4d8391c
parent 69c948cc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -110,12 +110,12 @@ public class CallStreamingController extends CallsManagerListenerBase {
            CompletableFuture<VoipCallTransactionResult> future = new CompletableFuture<>();

            if (mCallsManager.getCallStreamingController().isStreaming()) {
                future.complete(new VoipCallTransactionResult(
                        VoipCallTransactionResult.RESULT_SUCCEED, null));
            } else {
                future.complete(new VoipCallTransactionResult(
                        VoipCallTransactionResult.RESULT_FAILED,
                        "STREAMING_FAILED_ALREADY_STREAMING"));
            } else {
                future.complete(new VoipCallTransactionResult(
                        VoipCallTransactionResult.RESULT_SUCCEED, null));
            }

            return future;