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 _messageNewListener =
.on(EventType.messageNew) streamChannel!.channel.on(EventType.messageNew).skip(1)
.skip(1) //skipping the first event //skipping the first event because
.listen((event) { //the StreamController is a BehaviorSubject
.listen((event) {
if (_upToDate) { if (_upToDate) {
_bottomPaginationActive = false; _bottomPaginationActive = false;
} }