change default direction in paginate data

This commit is contained in:
Salvatore Giordano
2021-04-20 16:39:10 +02:00
parent c5647652e2
commit 4f37190fcc
2 changed files with 7 additions and 6 deletions
@@ -162,9 +162,9 @@ class MessageListCoreState extends State<MessageListCore> {
/// Fetches more messages with updated pagination and updates the widget.
///
/// Optionally pass the fetch direction, defaults to [QueryDirection.bottom]
/// Optionally pass the fetch direction, defaults to [QueryDirection.top]
Future<void> paginateData({
QueryDirection direction = QueryDirection.bottom,
QueryDirection direction = QueryDirection.top,
}) {
if (!_isThreadConversation) {
return _streamChannel.queryMessages(direction: direction);