getMessage(accountId:chatId:serverId:localId:)

Find a message by Chat ID and known IDs

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

Parameters

accountId

the account that owns the message

chatId

Chat containing the message

serverId

authoritative server-assigned ID, if known

localId

client-assigned ID, if known

Return Value

Promise resolving to the matching message or null