add messageFilter property in messageListView

This commit is contained in:
Salvatore Giordano
2021-01-25 09:54:16 +01:00
parent 726e1a2d77
commit e0c8068fbd
2 changed files with 20 additions and 11 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ void _initNotifications(Client client) {
if (connector.token.value != null) {
client.addDevice(
connector.token.value,
Platform.isAndroid ? 'firebase' : 'apn',
Platform.isAndroid ? PushProvider.firebase : PushProvider.apn,
);
}
});
@@ -127,7 +127,7 @@ class ChannelListPage extends StatelessWidget {
'\$in': [StreamChat.of(context).user.id],
}
},
// sort: [SortOption('last_message_at')],
sort: [SortOption('last_message_at')],
pagination: PaginationParams(
limit: 20,
),