makePayload method

void makePayload(
  1. Map<String, dynamic> payload
)

Implementation

void makePayload(Map<String, dynamic> payload) {
  payload['from_device'] = client.deviceID;
  if (transactionId != null) {
    if (room != null) {
      payload['m.relates_to'] = {
        'rel_type': 'm.reference',
        'event_id': transactionId,
      };
    } else {
      payload['transaction_id'] = transactionId;
    }
  }
}