Update the SDK fixing some user status bugs. (#6037)

- Room heroes weren't being updated when their status changed.
- A user's own profile would go missing after removing their avatar (or setting any field to null).
This commit is contained in:
Doug
2026-08-17 14:17:11 +01:00
committed by GitHub
parent 809965f693
commit 224edafabd
5 changed files with 19 additions and 8 deletions
@@ -18465,16 +18465,27 @@ open class TimelineSDKMock: MatrixRustSDK.Timeline, @unchecked Sendable {
get { sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations } } get { sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations } }
set { sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations = newValue } } set { sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations = newValue } }
} }
open var sendReplyMsgEventIdClosure: ((RoomMessageEventContentWithoutRelation, String) async throws -> Void)?
open override func sendReply(msg: RoomMessageEventContentWithoutRelation, eventId: String) async throws { private let sendReplyMsgEventIdReturnValueLock = NSLock()
open var sendReplyMsgEventIdUnderlyingReturnValue: SendHandle!
open var sendReplyMsgEventIdReturnValue: SendHandle! {
get { sendReplyMsgEventIdReturnValueLock.withLock { sendReplyMsgEventIdUnderlyingReturnValue } }
set { sendReplyMsgEventIdReturnValueLock.withLock { sendReplyMsgEventIdUnderlyingReturnValue = newValue } }
}
open var sendReplyMsgEventIdClosure: ((RoomMessageEventContentWithoutRelation, String) async throws -> SendHandle)?
open override func sendReply(msg: RoomMessageEventContentWithoutRelation, eventId: String) async throws -> SendHandle {
if let error = sendReplyMsgEventIdThrowableError { if let error = sendReplyMsgEventIdThrowableError {
throw error throw error
} }
sendReplyMsgEventIdCallsCountLock.withLock { sendReplyMsgEventIdUnderlyingCallsCount += 1 } sendReplyMsgEventIdCallsCountLock.withLock { sendReplyMsgEventIdUnderlyingCallsCount += 1 }
sendReplyMsgEventIdReceivedArguments = (msg: msg, eventId: eventId) sendReplyMsgEventIdReceivedArguments = (msg: msg, eventId: eventId)
sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations.append((msg: msg, eventId: eventId)) } sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations.append((msg: msg, eventId: eventId)) }
try await sendReplyMsgEventIdClosure?(msg, eventId) if let sendReplyMsgEventIdClosure = sendReplyMsgEventIdClosure {
return try await sendReplyMsgEventIdClosure(msg, eventId)
} else {
return sendReplyMsgEventIdReturnValue
}
} }
//MARK: - sendVideo //MARK: - sendVideo
+1 -1
View File
@@ -10750,7 +10750,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift"; repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = { requirement = {
kind = exactVersion; kind = exactVersion;
version = 26.08.14; version = 26.08.17;
}; };
}; };
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
@@ -167,8 +167,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift", "location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : { "state" : {
"revision" : "de262a6ef0e249cf0c82a44abf958a4c0e9e0518", "revision" : "f3c898f9673df5405f4e65e35920f10bab32b847",
"version" : "26.8.14" "version" : "26.8.17"
} }
}, },
{ {
@@ -441,7 +441,7 @@ final class TimelineProxy: TimelineProxyProtocol {
do { do {
if let inReplyToEventID { if let inReplyToEventID {
try await timeline.sendReply(msg: messageContent, eventId: inReplyToEventID) _ = try await timeline.sendReply(msg: messageContent, eventId: inReplyToEventID)
MXLog.info("Finished sending reply to eventID: \(inReplyToEventID)") MXLog.info("Finished sending reply to eventID: \(inReplyToEventID)")
} else { } else {
_ = try await timeline.send(msg: messageContent) _ = try await timeline.send(msg: messageContent)
+1 -1
View File
@@ -74,7 +74,7 @@ packages:
# Element/Matrix dependencies # Element/Matrix dependencies
MatrixRustSDK: MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 26.08.14 exactVersion: 26.08.17
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
path: compound-ios path: compound-ios