mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-01 18:22:47 +00:00
33bdf968c5
MatrixClient had no way to read or write global account data although the underlying client supports it. Add getAccountData and setAccountData to the interface and implement them in RustMatrixClient using the same withContext/runCatchingExceptions idiom as the neighbouring methods. The content is the raw JSON string the SDK returns and accepts: event types are open ended, so a typed wrapper belongs to whichever caller needs one. Scope is limited to global account data; the room level variant and the change notification APIs can follow when a feature needs them.