Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BER-395: Sync origin with upstream v0.27.13 #8

Merged
merged 96 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
dc6adea
Merge branch 'master' into develop
Velin92 Jan 9, 2024
97f335b
Prepare for new sprint
Velin92 Jan 9, 2024
8da77d3
version++
stefanceriu Feb 7, 2024
fffa162
Merge pull request #1844 from matrix-org/release/0.27.6/release
stefanceriu Feb 7, 2024
184b907
finish version++
stefanceriu Feb 7, 2024
9e6a0da
Merge branch 'release/0.27.6/master'
stefanceriu Feb 7, 2024
73b8b72
Merge branch 'master' into develop
stefanceriu Feb 7, 2024
8639971
Prepare for new sprint
stefanceriu Feb 7, 2024
3a89ecf
Add own device creation ts in crypto API
BillCarsonFr Apr 2, 2024
e74124e
deviceCreationTs should be readonly
BillCarsonFr Apr 2, 2024
2b04dfd
Merge pull request #1848 from matrix-org/valere/expose_own_device_cre…
BillCarsonFr Apr 4, 2024
e3bba83
version++
pixlwave May 1, 2024
dc517e5
Merge pull request #1850 from matrix-org/release/0.27.7/release
pixlwave May 1, 2024
d79b661
finish version++
pixlwave May 1, 2024
26764b1
Merge branch 'release/0.27.7/master'
pixlwave May 1, 2024
a2486a8
Merge branch 'master' into develop
pixlwave May 1, 2024
8ca9961
Prepare for new sprint
pixlwave May 1, 2024
30d49a6
Sorting room list alphabetically case-insensitive. (#1851)
NicolasBuquet May 8, 2024
15fe3fb
Bump rust crypto sdk version 0.4.1
BillCarsonFr May 23, 2024
5402d6b
update minimum ios platform 13.0
BillCarsonFr May 23, 2024
8c7f224
Update min deployment target to 13.0
BillCarsonFr May 23, 2024
be3ba92
Update osx min platform
BillCarsonFr May 23, 2024
4fd8ff1
update podfile lock
BillCarsonFr May 23, 2024
2e45e07
Fix test compilation
BillCarsonFr May 23, 2024
5b4382d
Add changelog
BillCarsonFr May 23, 2024
0c3ab70
Merge pull request #1853 from matrix-org/valere/bump_crypto_sdk_versi…
BillCarsonFr May 24, 2024
eb25429
Invalidate crypto store cache when entering foreground
BillCarsonFr May 24, 2024
468247e
Bump crypto sdk to 0.4.2
BillCarsonFr May 28, 2024
eb3f5b4
Fix warnings
BillCarsonFr May 29, 2024
758e1af
Bump the Crypto version in the podspec as well
stefanceriu May 29, 2024
7399902
Merge pull request #1854 from matrix-org/valere/NSE_partial_fix
stefanceriu May 29, 2024
bdc2125
version++
stefanceriu May 29, 2024
9b16281
Merge pull request #1856 from matrix-org/release/0.27.8/release
stefanceriu May 29, 2024
754e2fc
finish version++
stefanceriu May 29, 2024
11aa1f4
Merge branch 'release/0.27.8/master'
stefanceriu May 29, 2024
aedc5c4
Merge branch 'master' into develop
stefanceriu May 29, 2024
f03778f
Prepare for new sprint
stefanceriu May 29, 2024
b0a5fb0
Fix | Share room keys with dehydrated devices with rust stack
BillCarsonFr Jun 5, 2024
d1836af
Add RestClient method for reporting rooms through MSC4151
stefanceriu Jun 12, 2024
3052a39
Merge pull request #1859 from matrix-org/stefan/reportRooms
stefanceriu Jun 12, 2024
320c67d
version++
stefanceriu Jun 13, 2024
bc4b751
Merge pull request #1860 from matrix-org/release/0.27.9/release
stefanceriu Jun 13, 2024
ff6bc06
finish version++
stefanceriu Jun 13, 2024
28ef121
Merge branch 'release/0.27.9/master'
stefanceriu Jun 13, 2024
2732634
Merge branch 'master' into develop
stefanceriu Jun 13, 2024
82f93fb
Prepare for new sprint
stefanceriu Jun 13, 2024
8ae5269
Add a new state event type: "m.room.retention"
giomfo Mar 27, 2021
b9bee86
added some functions to remove messages
Velin92 Jun 14, 2024
9cfe050
remove all messages sent
Velin92 Jun 14, 2024
d3f4ec0
fixing a compilation error
Velin92 Jun 14, 2024
fcfbb67
Merge pull request #1861 from matrix-org/mauroromito/add_m.room.reten…
Velin92 Jun 14, 2024
643dd94
version++
pixlwave Jun 17, 2024
5ddd988
Merge pull request #1862 from matrix-org/release/0.27.10/release
pixlwave Jun 17, 2024
84be3e6
finish version++
pixlwave Jun 17, 2024
c64c052
Merge branch 'release/0.27.10/master'
pixlwave Jun 17, 2024
6102557
Merge branch 'master' into develop
pixlwave Jun 17, 2024
b570ef6
Prepare for new sprint
pixlwave Jun 17, 2024
9215e34
Update README. (#1863)
pixlwave Jun 17, 2024
52c0b5b
fix store issue
Velin92 Jun 18, 2024
ff2b2a4
Merge pull request #1864 from matrix-org/mauroromito/fix_store_issue
Velin92 Jun 18, 2024
096d5f1
version++
Velin92 Jun 18, 2024
ff7beff
Merge pull request #1865 from matrix-org/release/0.27.11/release
Velin92 Jun 18, 2024
80bb9c6
finish version++
Velin92 Jun 18, 2024
8a7f6b3
Merge branch 'release/0.27.11/master'
Velin92 Jun 18, 2024
d3c2de6
Merge branch 'master' into develop
Velin92 Jun 18, 2024
b2833e0
Prepare for new sprint
Velin92 Jun 18, 2024
50dba6b
Fix CallKit audio session late init
Jun 19, 2024
8d4bb9a
Merge pull request #1866 from NicolasBuquet/fix-callkit-audio-session…
Velin92 Jun 20, 2024
e1288e7
Merge pull request #1858 from matrix-org/valere/fix_sending_to_dehydr…
BillCarsonFr Jun 24, 2024
04e422e
Expose MXRoomPowerLevels Swift wrappers to Element (#1869)
NicolasBuquet Jun 24, 2024
537b404
implemented for the preview url API
Velin92 Jul 2, 2024
ab29142
removing return used for testing
Velin92 Jul 3, 2024
15e214c
using rest client instead of the home server directly
Velin92 Jul 3, 2024
4d22f5e
added the access token to the media loader request
Velin92 Jul 3, 2024
1c1760f
implementation based on the server version
Velin92 Jul 5, 2024
1083552
access token fix
Velin92 Jul 5, 2024
66f05d0
documentation
Velin92 Jul 5, 2024
389fdfa
code improvement
Velin92 Jul 5, 2024
1c4b3f5
Merge pull request #1871 from matrix-org/mauroromito/content_auth_APIs
Velin92 Jul 5, 2024
6c4bb3d
version++
Velin92 Jul 23, 2024
5537167
Merge pull request #1873 from matrix-org/release/0.27.12/release
Velin92 Jul 23, 2024
4f9bdfc
finish version++
Velin92 Jul 23, 2024
f2b4e6e
Merge branch 'release/0.27.12/master'
Velin92 Jul 23, 2024
4391d16
Merge branch 'master' into develop
Velin92 Jul 23, 2024
4a3d8f9
Prepare for new sprint
Velin92 Jul 23, 2024
35e4b67
Add UTC timestamps to console logs
richvdh Jul 24, 2024
87b3688
Create 7472.change
richvdh Jul 24, 2024
8c3fcc3
Bring in line with foundation DCO (#1875)
joshsimmons Jul 26, 2024
e83989f
Update format to include the time, Z cannot be applied to NSLog times…
stefanceriu Aug 12, 2024
3fbf0d6
Merge pull request #1874 from matrix-org/richvdh-patch-1
stefanceriu Aug 12, 2024
e1d601a
Use the codecov token. (#1877)
pixlwave Aug 20, 2024
5fa780e
version++
pixlwave Aug 20, 2024
1ffda4a
Merge pull request #1878 from matrix-org/release/0.27.13/release
pixlwave Aug 20, 2024
1f3fa5a
finish version++
pixlwave Aug 20, 2024
0a3ebd5
Merge remote-tracking branch 'upstream/master' into feature/395_sync_…
denasescu Sep 2, 2024
d762f48
BER-395: update changelog
denasescu Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 31 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
### Pull Request Checklist
**Context**
- Why do we want/need it?

<!-- Please read CONTRIBUTING.md before submitting your pull request -->
**Relevant issues**
- Closes ...(e.g. #138)

* [ ] Pull request is based on the develop branch
* [ ] Pull request contains a changelog file in ./changelog.d. See https://github.com/matrix-org/matrix-ios-sdk/blob/develop/CONTRIBUTING.md#changelog
* [ ] Pull request includes a [sign off](https://github.com/matrix-org/matrix-ios-sdk/blob/develop/CONTRIBUTING.md#sign-off)
**Changes**
- What does it do?
- In summary, what changes are made to the code?

**Known problems**
- What problems do still arise or are anticipated?
- Which part of the solution do you need help with?

**Extra attention**
- What do I need to pay extra attention to as a reviewer?

**Check-list**
- [ ] Acceptance criteria described in the issue are satisfied, or the bug(s) is/are fixed.
- [ ] Documentation present (relevant information is properly documented).
- [ ] Written tests for test suite (optional).
- [ ] CHANGELOG updated.

**Tested on devices**
- [ ] Minimum supported iOS version.
- [ ] Maximum supported iOS version.
- [ ] Lowest resolution supported.
- [ ] Highest resolution supported.
- [ ] Device with a notch.
- [ ] Device without a notch.

**Is this issue considered as Done?**
- [ ] It meets our [DoD](https://github.com/nedap/healthcare-mobile/wiki/DoD).
4 changes: 3 additions & 1 deletion .github/workflows/ci-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ jobs:

# Upload coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ jobs:
path: build/test/MatrixSDK-macOS.xcresult/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
All notable changes specific for Berichten Matrix SDK will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [v0.1.4] - 02/09/2024
##### Added
- BER-395: Merge upstream MatrixSDK v0.27.13.

##### Fixed

##### Changed

## [v0.1.3] - 04/06/2024
##### Added
- BER-359: Merge upstream MatrixSDK v0.27.8.
Expand Down Expand Up @@ -37,6 +45,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

---

[v0.1.4]: https://github.com/nedap/matrix-ios-sdk/compare/nedap/0.1.3...nedap/0.1.4
[v0.1.3]: https://github.com/nedap/matrix-ios-sdk/compare/nedap/0.1.2...nedap/0.1.3
[v0.1.2]: https://github.com/nedap/matrix-ios-sdk/compare/nedap/0.1.1...nedap/0.1.2
[v0.1.1]: https://github.com/nedap/matrix-ios-sdk/compare/nedap/0.1.0...nedap/0.1.1
Expand Down
37 changes: 37 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
## Changes in 0.27.13 (2024-08-20)

🙌 Improvements

- Add UTC timestamps to console log lines. ([#7472](https://github.com/vector-im/element-ios/issues/7472))

📄 Documentation

- Drop the requirement for "real" or "legally identifiable" name in order to contribute, in line with updated Foundation policy. ([#1875](https://github.com/matrix-org/matrix-ios-sdk/pull/1875))


## Changes in 0.27.12 (2024-07-23)

🙌 Improvements

- Expose MXRroomPowerLevels Swift wrappers to Element ([#1869](https://github.com/matrix-org/matrix-ios-sdk/pull/1869))

🐛 Bugfixes

- Fix CallKit audio session late init in VoIP call. ([#1866](https://github.com/matrix-org/matrix-ios-sdk/pull/1866))


## Changes in 0.27.11 (2024-06-18)

No significant changes.


## Changes in 0.27.10 (2024-06-17)

No significant changes.


## Changes in 0.27.9 (2024-06-13)

No significant changes.


## Changes in 0.27.8 (2024-05-29)

🙌 Improvements
Expand Down
5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ include the line in your commit or pull request comment:
Signed-off-by: Your Name <your@email.example.org>
```

We accept contributions under a legally identifiable name, such as
your name on government documentation or common-law names (names
claimed by legitimate usage or repute). Unfortunately, we cannot
accept anonymous contributions at this time.

Git allows you to add this signoff automatically when using the `-s`
flag to `git commit`, which uses the name and email set in your
`user.name` and `user.email` git configs.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "fastlane"
gem "cocoapods", '~>1.14.3'
gem "cocoapods", '~>1.15.2'
gem "xcode-install"
gem "slather"
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ GEM
bigdecimal (3.1.4)
claide (1.1.0)
clamp (1.3.2)
cocoapods (1.14.3)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.14.3)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -59,7 +59,7 @@ GEM
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.14.3)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand Down Expand Up @@ -165,7 +165,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
ffi (1.16.3)
ffi (1.17.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
Expand Down Expand Up @@ -296,7 +296,7 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.14.3)
cocoapods (~> 1.15.2)
fastlane
slather
xcode-install
Expand Down
2 changes: 1 addition & 1 deletion MatrixSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "MatrixSDK"
s.version = "0.1.3"
s.version = "0.1.4"
s.summary = "The iOS SDK to build apps compatible with Matrix (https://www.matrix.org)"

s.description = <<-DESC
Expand Down
6 changes: 5 additions & 1 deletion MatrixSDK/Background/MXBackgroundStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ class MXBackgroundStore: NSObject, MXStore {
func isRoomMarked(asUnread roomId: String) -> Bool {
return false
}

func removeAllMessagesSent(before limitTs: UInt64, inRoom roomId: String) -> Bool {
// Not sure if this needs to be implemented
false
}
}

// MARK: - MXRoomSummaryStore
Expand Down Expand Up @@ -334,5 +339,4 @@ extension MXBackgroundStore: MXRoomSummaryStore {
completion([])
}
}

}
24 changes: 24 additions & 0 deletions MatrixSDK/Categories/MXKeysQueryResponse+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,27 @@ extension MXKeysQueryResponse : MXSummable {
return keysQueryResponse as! Self
}
}


extension MXKeysQueryResponseRaw : MXSummable {

public static func +(lhs: MXKeysQueryResponseRaw, rhs: MXKeysQueryResponseRaw) -> Self {
let keysQueryResponse = MXKeysQueryResponseRaw()

// Casts to original objc NSDictionary are annoying
// but we want to reuse our implementation of NSDictionary.+
let deviceKeysMap = (lhs.deviceKeys as NSDictionary? ?? NSDictionary())
+ (rhs.deviceKeys as NSDictionary? ?? NSDictionary())
keysQueryResponse.deviceKeys = deviceKeysMap as? [String : Any]

let crossSigningKeys = (lhs.crossSigningKeys as NSDictionary? ?? NSDictionary())
+ (rhs.crossSigningKeys as NSDictionary? ?? NSDictionary())
keysQueryResponse.crossSigningKeys = crossSigningKeys as? [String: MXCrossSigningInfo]

let failures = (lhs.failures as NSDictionary? ?? NSDictionary())
+ (rhs.failures as NSDictionary? ?? NSDictionary())
keysQueryResponse.failures = failures as? [AnyHashable : Any]

return keysQueryResponse as! Self
}
}
71 changes: 71 additions & 0 deletions MatrixSDK/Categories/MXRestClient+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,75 @@ public extension MXRestClient {

return operation
}

/// Download users keys by chunks.
///
/// - Parameters:
/// - users: list of users to get keys for.
/// - token: sync token to pass in the query request, to help.
/// - chunkSize: max number of users to ask for in one CS API request.
/// - success: A block object called when the operation succeeds.
/// - failure: A block object called when the operation fails.
/// - Returns: a MXHTTPOperation instance.
func downloadKeysByChunkRaw(forUsers users: [String],
token: String?,
chunkSize: Int = 250,
success: @escaping (_ keysQueryResponse: MXKeysQueryResponseRaw) -> Void,
failure: @escaping (_ error: NSError?) -> Void) -> MXHTTPOperation {

// Do not chunk if not needed
if users.count <= chunkSize {
return self.downloadKeysRaw(forUsers: users, token: token) { response in
switch response {
case .success(let keysQueryResponse):
success(keysQueryResponse)
case .failure(let error):
failure(error as NSError)
}
}
}

MXLog.debug("[MXRestClient+Extensions] downloadKeysByChunk: \(users.count) users with chunkSize:\(chunkSize)")

// An arbitrary MXHTTPOperation. It will not cancel requests
// but it will avoid to call callbacks in case of a cancellation is requested
let operation = MXHTTPOperation()

let group = DispatchGroup()
var responses = [MXResponse<MXKeysQueryResponseRaw>]()
users.chunked(into: chunkSize).forEach { chunkedUsers in
group.enter()
self.downloadKeysRaw(forUsers: chunkedUsers, token: token) { response in
switch response {
case .success(let keysQueryResponse):
MXLog.debug("[MXRestClient+Extensions] downloadKeysByChunk: Got intermediate response. Got device keys for %@ users. Got cross-signing keys for %@ users \(String(describing: keysQueryResponse.deviceKeys.keys.count)) \(String(describing: keysQueryResponse.crossSigningKeys.count))")
case .failure(let error):
MXLog.debug("[MXRestClient+Extensions] downloadKeysByChunk: Got intermediate error. Error: \(error)")
}

responses.append(response)
group.leave()
}
}

group.notify(queue: self.completionQueue) {
MXLog.debug("[MXRestClient+Extensions] downloadKeysByChunk: Got all responses")

guard operation.isCancelled == false else {
MXLog.debug("[MXRestClient+Extensions] downloadKeysByChunk: Request was cancelled")
return
}

// Gather all responses in one
let response = responses.reduce(.success(MXKeysQueryResponseRaw()), +)
switch response {
case .success(let keysQueryResponse):
success(keysQueryResponse)
case .failure(let error):
failure(error as NSError)
}
}

return operation
}
}
4 changes: 3 additions & 1 deletion MatrixSDK/Contrib/Swift/JSONModels/MXEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public enum MXEventType: Equatable, Hashable {

case beaconInfo
case beacon
case roomRetention

case custom(String)

Expand Down Expand Up @@ -141,6 +142,7 @@ public enum MXEventType: Equatable, Hashable {
case .taggedEvents: return kMXEventTypeStringTaggedEvents
case .spaceChild: return kMXEventTypeStringSpaceChild
case .spaceOrder: return kMXEventTypeStringSpaceOrderMSC3230
case .roomRetention: return kMXEventTypeStringRoomRetention

case .pollStart: return kMXEventTypeStringPollStartMSC3381
case .pollResponse: return kMXEventTypeStringPollResponseMSC3381
Expand All @@ -157,7 +159,7 @@ public enum MXEventType: Equatable, Hashable {
}

public init(identifier: String) {
let events: [MXEventType] = [.roomName, .roomTopic, .roomAvatar, .roomMember, .roomCreate, .roomJoinRules, .roomPowerLevels, .roomAliases, .roomCanonicalAlias, .roomEncrypted, .roomEncryption, .roomGuestAccess, .roomHistoryVisibility, .roomKey, .roomForwardedKey, .roomKeyRequest, .roomMessage, .roomMessageFeedback, .roomRedaction, .roomThirdPartyInvite, .roomTag, .presence, .typing, .callInvite, .callCandidates, .callAnswer, .callSelectAnswer, .callHangup, .callReject, .callNegotiate, .callReplaces, .callRejectReplacement, .callAssertedIdentity, .callAssertedIdentityUnstable, .reaction, .receipt, .roomTombStone, .keyVerificationStart, .keyVerificationAccept, .keyVerificationKey, .keyVerificationMac, .keyVerificationCancel, .keyVerificationDone, .secretRequest, .secretSend, .secretStorageDefaultKey, .taggedEvents, .spaceChild, .spaceOrder, .pollStart, .pollResponse, .pollEnd, .beaconInfo, .beacon]
let events: [MXEventType] = [.roomName, .roomTopic, .roomAvatar, .roomMember, .roomCreate, .roomJoinRules, .roomPowerLevels, .roomAliases, .roomCanonicalAlias, .roomEncrypted, .roomEncryption, .roomGuestAccess, .roomHistoryVisibility, .roomKey, .roomForwardedKey, .roomKeyRequest, .roomMessage, .roomMessageFeedback, .roomRedaction, .roomThirdPartyInvite, .roomTag, .presence, .typing, .callInvite, .callCandidates, .callAnswer, .callSelectAnswer, .callHangup, .callReject, .callNegotiate, .callReplaces, .callRejectReplacement, .callAssertedIdentity, .callAssertedIdentityUnstable, .reaction, .receipt, .roomTombStone, .keyVerificationStart, .keyVerificationAccept, .keyVerificationKey, .keyVerificationMac, .keyVerificationCancel, .keyVerificationDone, .secretRequest, .secretSend, .secretStorageDefaultKey, .taggedEvents, .spaceChild, .spaceOrder, .pollStart, .pollResponse, .pollEnd, .beaconInfo, .beacon, .roomRetention]

if let type = events.first(where: { $0.identifier == identifier }) {
self = type
Expand Down
4 changes: 2 additions & 2 deletions MatrixSDK/Contrib/Swift/JSONModels/MXRoomPowerLevels.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extension MXRoomPowerLevels {
- parameter eventType: the type of event.
- returns: the required minimum power level.
*/
@nonobjc func minimumPowerLevelForSendingMessageEvent(_ eventType: MXEventType) -> Int {
@nonobjc public func minimumPowerLevelForSendingMessageEvent(_ eventType: MXEventType) -> Int {
return __minimumPowerLevelForSendingEvent(asMessage: eventType.identifier)
}

Expand All @@ -36,7 +36,7 @@ extension MXRoomPowerLevels {
- parameter eventType: the type of event.
- returns: the required minimum power level.
*/
@nonobjc func minimumPowerLevelForSendingStateEvent(_ eventType: MXEventType) -> Int {
@nonobjc public func minimumPowerLevelForSendingStateEvent(_ eventType: MXEventType) -> Int {
return __minimumPowerLevelForSendingEvent(asStateEvent: eventType.identifier)
}

Expand Down
4 changes: 4 additions & 0 deletions MatrixSDK/Contrib/Swift/MXRestClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,10 @@ public extension MXRestClient {
return __downloadKeys(forUsers: userIds, token: token, success: currySuccess(completion), failure: curryFailure(completion))
}

@nonobjc @discardableResult func downloadKeysRaw(forUsers userIds: [String], token: String? = nil, completion: @escaping (_ response: MXResponse<MXKeysQueryResponseRaw>) -> Void) -> MXHTTPOperation {
return __downloadKeysRaw(forUsers: userIds, token: token, success: currySuccess(completion), failure: curryFailure(completion))
}


/**
Claim one-time keys.
Expand Down
6 changes: 3 additions & 3 deletions MatrixSDK/Crypto/CryptoMachine/MXCryptoRequests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import MatrixSDKCrypto
/// to the native REST API client
struct MXCryptoRequests {
private let restClient: MXRestClient
private let queryScheduler: MXKeysQueryScheduler<MXKeysQueryResponse>
private let queryScheduler: MXKeysQueryScheduler<MXKeysQueryResponseRaw>

init(restClient: MXRestClient) {
self.restClient = restClient
self.queryScheduler = .init { users in
try await performCallbackRequest { completion in
_ = restClient.downloadKeysByChunk(
_ = restClient.downloadKeysByChunkRaw(
forUsers: users,
token: nil,
success: {
Expand Down Expand Up @@ -96,7 +96,7 @@ struct MXCryptoRequests {
}
}

func queryKeys(users: [String]) async throws -> MXKeysQueryResponse {
func queryKeys(users: [String]) async throws -> MXKeysQueryResponseRaw {
try await queryScheduler.query(users: Set(users))
}

Expand Down
2 changes: 1 addition & 1 deletion MatrixSDK/Data/Store/MXFileStore/MXFileStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#import "MatrixSDKSwiftHeader.h"
#import "MXFileRoomSummaryStore.h"

static NSUInteger const kMXFileVersion = 82; // Check getUnreadRoomFromStore if you update this value. Delete this comment after
static NSUInteger const kMXFileVersion = 83; // Check getUnreadRoomFromStore if you update this value. Delete this comment after

static NSString *const kMXFileStoreFolder = @"MXFileStore";
static NSString *const kMXFileStoreMedaDataFile = @"MXFileStore";
Expand Down
Loading