syncPoint(accountId:chatId:)

Get the last message in an account or chat that is is safe to sync forward from

func syncPoint(accountId: String, chatId: String?) async -> ChatMessage?

Parameters

accountId

the account whose state should be queried

chatId

chat to inspect, or null for the account-wide sync point

Return Value

Promise resolving to the sync point or null