diff --git a/.github/workflows/ci-unit-tests.yml b/.github/workflows/ci-unit-tests.yml index 7bdec1987..46ffea004 100644 --- a/.github/workflows/ci-unit-tests.yml +++ b/.github/workflows/ci-unit-tests.yml @@ -64,6 +64,6 @@ jobs: path: build/test/MatrixSDK-macOS.xcresult/ - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/MatrixSDK/Crypto/Verification/Transactions/SAS/MXSASTransactionV2.swift b/MatrixSDK/Crypto/Verification/Transactions/SAS/MXSASTransactionV2.swift index bdcdcf9bf..a196f8780 100644 --- a/MatrixSDK/Crypto/Verification/Transactions/SAS/MXSASTransactionV2.swift +++ b/MatrixSDK/Crypto/Verification/Transactions/SAS/MXSASTransactionV2.swift @@ -150,7 +150,7 @@ extension MXSASTransactionV2: SasListener { switch state { case .started: - self.state = isIncoming ? MXSASTransactionStateIncomingShowAccept : MXSASTransactionStateOutgoingWaitForPartnerToAccept + self.state = MXSASTransactionStateIncomingShowAccept case .accepted: self.state = MXSASTransactionStateWaitForPartnerKey case .keysExchanged(let emojis, let decimals): @@ -173,7 +173,7 @@ extension MXSASTransactionV2: SasListener { ) self.state = cancelInfo.cancelledByUs == true ? MXSASTransactionStateCancelledByMe : MXSASTransactionStateCancelled case .created: - break + self.state = MXSASTransactionStateOutgoingWaitForPartnerToAccept } } }