fix(sdk): adapt to matrix-rust-sdk 26.04.x API shifts
TracingConfiguration gained a required sentryConfig parameter between 26.03.x and 26.04.x. Pass null — we don't use SDK-side Sentry. Timeline.sendRaw was moved off Timeline onto Room. Add sendRawEvent to the JoinedRoom API interface, implement in JoinedRustRoom by calling innerRoom.sendRaw, and have RustTimeline.sendRaw proxy through the owning JoinedRoom. Our /pay event path keeps working without callers having to know about the SDK move.
This commit is contained in:
parent
0ef6b69a79
commit
a944499eda
5 changed files with 31 additions and 8 deletions
|
|
@ -212,4 +212,16 @@ interface JoinedRoom : BaseRoom {
|
|||
* @return Result indicating success or failure.
|
||||
*/
|
||||
suspend fun sendLiveLocation(geoUri: String): Result<Unit>
|
||||
|
||||
/**
|
||||
* Send a custom/raw event to the room (non-message event types).
|
||||
*
|
||||
* Used by the Cardano wallet for `/pay` events
|
||||
* (e.g., `co.sulkta.payment.request`). Upstream SDK moved raw event
|
||||
* sending from Timeline to Room; this method proxies through.
|
||||
*
|
||||
* @param eventType The custom event type string
|
||||
* @param content The JSON-serialized event content
|
||||
*/
|
||||
suspend fun sendRawEvent(eventType: String, content: String): Result<Unit>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue