fix: ignore list
This commit is contained in:
parent
a77e776479
commit
510de05304
|
@ -1527,9 +1527,11 @@ sort order of ${prevState.sortOrder}. This should never happen...''');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A list of mxids of users who are ignored.
|
/// A list of mxids of users who are ignored.
|
||||||
List<String> get ignoredUsers =>
|
List<String> get ignoredUsers => (accountData
|
||||||
accountData.containsKey('m.ignored_user_list')
|
.containsKey('m.ignored_user_list') &&
|
||||||
? accountData['m.ignored_user_list'].content['ignored_users']
|
accountData['m.ignored_user_list'].content['ignored_users'] is List)
|
||||||
|
? List<String>.from(
|
||||||
|
accountData['m.ignored_user_list'].content['ignored_users'])
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
/// Ignore another user. This will clear the local cached messages to
|
/// Ignore another user. This will clear the local cached messages to
|
||||||
|
|
Loading…
Reference in a new issue