getMessage(accountId:chatId:serverId:localId:)

Get a single message

func getMessage(accountId: String, chatId: String, serverId: String?, localId: String?) async -> ChatMessage?

Parameters

accountId

the account the message was sent or received on

chatId

the chat the message was sent or received on

serverId

the serverId of the message (optional if localId is specified)

localId

the localId of the message (optional if serverId is specified)

Return Value

Promise resolving to the message or null