nice
This commit is contained in:
17
CLAUDE.md
17
CLAUDE.md
@@ -38,3 +38,20 @@ Fluffytrix is an Android Matrix chat client with a Discord-like UI. Built with K
|
||||
- Material You (Material 3 dynamic colors) theming
|
||||
- Matrix Rust SDK (`org.matrix.rustcomponents:sdk-android`) for Matrix protocol
|
||||
- Jetpack Compose for UI
|
||||
|
||||
## Matrix Rust SDK: Raw Event JSON
|
||||
|
||||
The SDK exposes full raw event JSON through the `LazyTimelineItemProvider` on each `EventTimelineItem`:
|
||||
|
||||
```kotlin
|
||||
val rawJson: String? = try {
|
||||
eventItem.lazyProvider.debugInfo().originalJson
|
||||
} catch (_: Exception) { null }
|
||||
```
|
||||
|
||||
`EventTimelineItemDebugInfo` fields:
|
||||
- `originalJson` — full raw JSON of the event (what Element shows in "View Source")
|
||||
- `latestEditJson` — raw JSON of the latest edit, if any
|
||||
- `model` — internal SDK model debug string
|
||||
|
||||
This is useful for reading custom/unstandardized fields that the SDK doesn't expose directly (e.g. `fi.mau.gif`, `com.beeper.per_message_profile`, bridge metadata).
|
||||
|
||||
Reference in New Issue
Block a user