Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2020-12-23 14:53:34 +05:30
parent 538029a5de
commit 6b97879009
-34
View File
@@ -134,40 +134,6 @@ class StreamChannelState extends State<StreamChannel> {
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<void> getReplies(
String parentId, {