getTransactionId static method

String? getTransactionId(
  1. Map<String, dynamic> payload
)

Implementation

static String? getTransactionId(Map<String, dynamic> payload) {
  return payload['transaction_id'] ??
      (payload['m.relates_to'] is Map
          ? payload['m.relates_to']['event_id']
          : null);
}