From 6b97879009eed22aa42474ced2f423cf3f4d8459 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 23 Dec 2020 14:53:34 +0530 Subject: [PATCH] cleanup Signed-off-by: Sahil Kumar --- lib/src/stream_channel.dart | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/lib/src/stream_channel.dart b/lib/src/stream_channel.dart index be6cb4a5..8b4b97ef 100644 --- a/lib/src/stream_channel.dart +++ b/lib/src/stream_channel.dart @@ -134,40 +134,6 @@ class StreamChannelState extends State { return _queryBottomMessages(); } - //if (_queryMessageController.value == true || _paginationEnded) { - // return; - // } - // - // _queryMessageController.add(true); - // - // String firstId; - // if (widget.channel.state.threads.containsKey(parentId)) { - // final thread = widget.channel.state.threads[parentId]; - // - // if (thread != null && thread.isNotEmpty) { - // firstId = thread?.first?.id; - // } - // } - // - // final messageLimit = 50; - // return widget.channel - // .getReplies( - // parentId, - // PaginationParams( - // lessThan: firstId, - // limit: messageLimit, - // ), - // preferOffline: true, - // ) - // .then((res) { - // if (res.messages.isEmpty || res.messages.length < messageLimit) { - // _paginationEnded = true; - // } - // _queryMessageController.add(false); - // }).catchError((e, stack) { - // _queryMessageController.addError(e, stack); - // }); - /// Calls [channel.getReplies] updating [queryMessage] stream Future getReplies( String parentId, {