relationshipEventId property

String? relationshipEventId

Get the event ID that this relationship will reference. null if there is none

Implementation

String? get relationshipEventId {
  final relatesToMap = content.tryGetMap<String, Object?>('m.relates_to');
  return relatesToMap?.tryGet<String>('event_id') ??
      relatesToMap
          ?.tryGetMap<String, Object?>('m.in_reply_to')
          ?.tryGet<String>('event_id');
}