Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Sep 13, 2024
1 parent 278cf8b commit d56aff1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
with:
name: report.junit
path: build/test/report.junit
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: always()
with:
name: MatrixSDK-macOS.xcresult
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: bundle exec fastlane test testplan:UnitTests

# Store artifacts
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: report.html
path: build/test/report.html
Expand Down
5 changes: 0 additions & 5 deletions MatrixSDK/Crypto/CryptoMachine/MXCryptoMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ class MXCryptoMachine {
}
}

func invalidateCache() async {
// Not sure what is the new function for this
// await machine.clearCryptoCache()
}

// MARK: - Private

private static func createMachine(userId: String, deviceId: String, log: MXNamedLog) throws -> OlmMachine {
Expand Down
3 changes: 1 addition & 2 deletions MatrixSDK/Crypto/MXCryptoV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,7 @@ class MXCryptoV2: NSObject, MXCrypto {

func invalidateCache(_ done: @escaping () -> Void) {
Task {
log.debug("Invalidating Olm Machine crypto store cache.")
await machine.invalidateCache()
// invalidating cache is not required for crypto v2 and is just here for conformance with the original crypto protocol
await MainActor.run {
done()
}
Expand Down

0 comments on commit d56aff1

Please sign in to comment.