historyVisibility property

HistoryVisibility? historyVisibility

This event controls whether a user can see the events that happened in a room from before they joined.

Implementation

HistoryVisibility? get historyVisibility {
  final hv =
      getState(EventTypes.HistoryVisibility)?.content['history_visibility'];
  return hv != null
      ? _historyVisibilityMap.map((k, v) => MapEntry(v, k))[hv]
      : null;
}