Format remaining files to 120 line limit
This commit is contained in:
parent
aadac3e484
commit
25e6bc478b
5 changed files with 30 additions and 15 deletions
|
|
@ -52,7 +52,8 @@ abstract class ListStoreBase with Store {
|
|||
/// The list of the fetched streams with blocked users filtered out.
|
||||
@computed
|
||||
ObservableList<StreamTwitch> get streams => _allStreams
|
||||
.where((streamInfo) => !authStore.user.blockedUsers.map((blockedUser) => blockedUser.userId).contains(streamInfo.userId))
|
||||
.where((streamInfo) =>
|
||||
!authStore.user.blockedUsers.map((blockedUser) => blockedUser.userId).contains(streamInfo.userId))
|
||||
.toList()
|
||||
.asObservable();
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@ abstract class UserStoreBase with Store {
|
|||
// Get and update the current user's list of blocked users.
|
||||
// Don't use await because having a huge list of blocked users will block the UI.
|
||||
if (_details?.id != null) {
|
||||
twitchApi.getUserBlockedList(id: _details!.id, headers: headers).then((blockedUsers) => _blockedUsers = blockedUsers.asObservable());
|
||||
twitchApi
|
||||
.getUserBlockedList(id: _details!.id, headers: headers)
|
||||
.then((blockedUsers) => _blockedUsers = blockedUsers.asObservable());
|
||||
}
|
||||
|
||||
_disposeReaction = autorun((_) => _blockedUsers.sort((a, b) => a.userLogin.compareTo(b.userLogin)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue