Skip to content

Commit

Permalink
resolve analyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nash0x7E2 committed Dec 28, 2021
1 parent 619f8c2 commit 9287529
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions lib/screens/desktop/desktop_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ class _DesktopChannelList extends StatelessWidget {
child: ChannelsBloc(
child: ChannelListView(
onChannelTap: (channel, _) => onChannelTap(channel),
filter:
Filter.in_('members', [StreamChat.of(context).user!.id]),
filter: Filter.in_(
'members', [StreamChat.of(context).currentUser!.id]),
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 30,
),
limit: 30,
),
),
),
Expand Down
7 changes: 3 additions & 4 deletions lib/screens/mobile/channel_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ class ChannelListPage extends StatelessWidget {
),
body: ChannelsBloc(
child: ChannelListView(
filter: Filter.in_('members', [StreamChat.of(context).user!.id]),
filter:
Filter.in_('members', [StreamChat.of(context).currentUser!.id]),
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 30,
),
limit: 30,
channelWidget: Builder(builder: (context) => MessagePage()),
),
),
Expand Down

0 comments on commit 9287529

Please sign in to comment.