directChats property

Map<String, List<String>> get directChats

Implementation

Map<String, List<String>> get directChats =>
    (_accountData['m.direct']?.content ?? {}).map(
      (userId, list) => MapEntry(
        userId,
        (list is! List) ? [] : list.whereType<String>().toList(),
      ),
    );