update example

This commit is contained in:
Salvatore Giordano
2020-03-13 15:38:23 +01:00
parent 4fbd38b0fe
commit ae41eb30bf
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -5,6 +5,7 @@ void main() async {
final client = Client(
's2dxdhpxd94g',
logLevel: Level.INFO,
persistenceEnabled: false,
);
await client.setUser(
@@ -41,11 +42,11 @@ class ChannelListPage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
body: ChannelListView(
// filter: {
// 'members': {
// '\$in': [StreamChat.of(context).user.id],
// }
// },
filter: {
'members': {
'\$in': [StreamChat.of(context).user.id],
}
},
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 20,