fix(ui): add comment

This commit is contained in:
Salvatore Giordano
2022-06-17 13:39:58 +02:00
parent 04768a10ef
commit 1cce2e6b8a
@@ -1386,10 +1386,11 @@ class _StreamMessageListViewState extends State<StreamMessageListView> {
);
}
_messageNewListener = streamChannel!.channel
.on(EventType.messageNew)
.skip(1) //skipping the first event
.listen((event) {
_messageNewListener =
streamChannel!.channel.on(EventType.messageNew).skip(1)
//skipping the first event because
//the StreamController is a BehaviorSubject
.listen((event) {
if (_upToDate) {
_bottomPaginationActive = false;
}