getMessageChangeLogs method
- MessageChangeLogParams params,
- {int? timestamp,
- String? token}
Requests message change logs after given token or timestamp
The token
to be the reference point for the changelogs to retrieve.
If the token is null, the result will be passed from the beginning.
The timestamp
to load change logs.
Change logs after this timestamp will be returned.
Implementation
Future<MessageChangeLogs> getMessageChangeLogs(
MessageChangeLogParams params, {
int? timestamp,
String? token,
}) async {
sbLog.i(StackTrace.current, 'timestamp: $timestamp');
checkUnsupportedAction();
return await chat.apiClient.send(
ChannelMessageChangeLogGetRequest(
chat,
channelType: channelType,
channelUrl: channelUrl,
params: params,
token: token,
timestamp: timestamp ?? IntMax.max,
),
);
}