Bump the RustSDK to v25.04.08, fix breaking changes

This commit is contained in:
Stefan Ceriu
2025-04-08 10:05:05 +03:00
committed by Stefan Ceriu
parent d92fecdc7e
commit c9dc7e63c5
7 changed files with 94 additions and 74 deletions
@@ -16,7 +16,6 @@ struct OIDCConfigurationProxy {
let policyURI: URL
let contacts: [String]
let staticRegistrations: [String: String]
let dynamicRegistrationsFile: URL
}
#if canImport(MatrixRustSDK)
@@ -31,8 +30,7 @@ extension OIDCConfigurationProxy {
tosUri: tosURI.absoluteString,
policyUri: policyURI.absoluteString,
contacts: contacts,
staticRegistrations: staticRegistrations,
dynamicRegistrationsFile: dynamicRegistrationsFile.path(percentEncoded: false))
staticRegistrations: staticRegistrations)
}
}
#endif
@@ -404,7 +404,11 @@ final class TimelineProxy: TimelineProxyProtocol {
do {
if let inReplyToEventID {
try await timeline.sendReply(msg: messageContent, eventId: inReplyToEventID)
// `enforceThread` will force send the message a thread with `inReplyToEventID` while
// `replyWithinThread` will create an in-reply-to associated field *within* that same thread
try await timeline.sendReply(msg: messageContent, replyParams: .init(eventId: inReplyToEventID,
enforceThread: false,
replyWithinThread: false))
MXLog.info("Finished sending reply to eventID: \(inReplyToEventID)")
} else {
_ = try await timeline.send(msg: messageContent)