syncMessage method

dynamic syncMessage(
  1. String channelId
)

Implementation

syncMessage(String channelId) async {
  var lastActiveAt = await getLastActiveAt(
    Message.stableName,
    channelId: channelId,
  );
  Event? res = await send(
    buildEvent(SyncModelMessage(
      lastUpdatedAt: lastActiveAt,
      channelId: channelId,
    )),
    waitResult: true,
    syncing: true,
  );
  if (res == null) {
    return false;
  }
  return true;
}