getMessagesAround(accountId:around:)

Load messages surrounding a reference message

func getMessagesAround(accountId: String, around: ChatMessage) async -> Array<ChatMessage>

Parameters

accountId

the account to load messages for

around

message to center the result set around

Return Value

Promise resolving to nearby messages