Skip to content

Message

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:11

A received or stored message. Its fields are public values. Its actions use the client that returned it; the message holds that client weakly, so an action after the client ends or is collected fails with ClientClosed. The generated base holds the message’s fields.

  • MessageFields

readonly content: MessageContent

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:12


readonly optional contentType?: ContentTypeId

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2370

MessageFields.contentType


readonly conversationId: string

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2361

MessageFields.conversationId


readonly deliveryCursor: string | null

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2360

The committed delivery position, or null when there is none.

MessageFields.deliveryCursor


readonly deliveryStatus: DeliveryStatus

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2368

MessageFields.deliveryStatus


readonly optional encoded?: EncodedContent

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2372

MessageFields.encoded


readonly optional expiresAt?: Timestamp

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2366

MessageFields.expiresAt


readonly optional fallback?: string

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2371

MessageFields.fallback


readonly id: string

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2358

MessageFields.id


readonly optional inReplyTo?: ReplyParent

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2375

MessageFields.inReplyTo


readonly optional inReplyToContent?: MessageBody

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:14

The decoded body of the message this one replies to.


readonly insertedAt: Timestamp

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2365

MessageFields.insertedAt


readonly kind: MessageKind

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2367

MessageFields.kind


readonly rawBytes: Uint8Array

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2369

MessageFields.rawBytes


readonly reactions: ReactionMessage[]

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2374

MessageFields.reactions


readonly optional replyContent?: MessageBody

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:16

The decoded body of this reply.


readonly replyCount: bigint

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2373

MessageFields.replyCount


readonly senderInboxId: string

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2363

MessageFields.senderInboxId


readonly sentAt: Timestamp

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2364

MessageFields.sentAt


readonly topic: string

Defined in: sdks/react-native/dist/public-values.gen.d.ts:2362

MessageFields.topic

client(): Client

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:33

The client that returned this message. Throws ClientClosed when gone.

Client


conversation(): Promise<Conversation | undefined>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:31

Promise<Conversation | undefined>


delete(): Promise<string>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:19

Promise<string>


deleteLocally(): Promise<void>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:20

Promise<void>


parent(): Promise<Message | undefined>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:30

Promise<Message | undefined>


react(reaction, options?): Promise<string>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:21

Reaction

SendOptions

Promise<string>


refresh(): Promise<Message | undefined>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:18

Promise<Message | undefined>


reply(content, options?): Promise<string>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:22

string | EncodedContent

SendOptions

Promise<string>

reply<T>(codec, value, options?): Promise<string>

Defined in: sdks/react-native/dist/runtime/public/message.d.ts:29

Reply with a value of a typed codec. The codec’s fallback applies to the nested envelope; the reply keeps the reply type’s push default unless options.shouldPush is set. A failed codec step is CodecEncodeFailed, with no publish attempt.

T

ContentCodec<T>

NoInfer<T>

SendOptions

Promise<string>