mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
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:
@@ -18465,16 +18465,27 @@ open class TimelineSDKMock: MatrixRustSDK.Timeline, @unchecked Sendable {
|
||||
get { sendReplyMsgEventIdReceivedInvocationsLock.withLock { sendReplyMsgEventIdUnderlyingReceivedInvocations } }
|
||||
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 {
|
||||
throw error
|
||||
}
|
||||
sendReplyMsgEventIdCallsCountLock.withLock { sendReplyMsgEventIdUnderlyingCallsCount += 1 }
|
||||
sendReplyMsgEventIdReceivedArguments = (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
|
||||
|
||||
Reference in New Issue
Block a user