postReceipt method

  1. @Deprecated('Use setReadMarker with mRead set instead. That allows for more control and there are few cases to not send a marker at the same time.')
Future<void> postReceipt(
  1. String eventId, {
  2. ReceiptType type = ReceiptType.mRead,
})

This API updates the marker for the given receipt type to the event ID specified. In general you want to use setReadMarker instead to set private and public receipt as well as the marker at the same time.

Implementation

@Deprecated(
    'Use setReadMarker with mRead set instead. That allows for more control and there are few cases to not send a marker at the same time.')
Future<void> postReceipt(String eventId,
    {ReceiptType type = ReceiptType.mRead}) async {
  await client.postReceipt(
    id,
    ReceiptType.mRead,
    eventId,
  );
  return;
}