Package 

Class Attachment


  • @Serializable() 
    public final class Attachment
    
                        

    Uploaded media descriptor. Surfaced on Message.attachments and passed back into SendMessagePayload.attachments.

    localUrl is an optional client-side preview URI (e.g. content:// or file://) that the UI can keep displaying after a message is acknowledged. It is encoded on the Kotlin↔JNI boundary so the Rust SDK can stash it keyed by attachment id, and the same Rust SDK strips it from the wire (skip_serializing) before the server-bound POST. The value is then merged back onto the server-issued Message by id, so MessageUpdated carries localUrl through to the consumer's UI without the server ever seeing it.