fix message list
This commit is contained in:
@@ -1087,9 +1087,6 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
_itemPositionListener =
|
_itemPositionListener =
|
||||||
widget.itemPositionListener ?? ItemPositionsListener.create();
|
widget.itemPositionListener ?? ItemPositionsListener.create();
|
||||||
|
|
||||||
initialIndex = _initialIndex;
|
|
||||||
initialAlignment = _initialAlignment;
|
|
||||||
|
|
||||||
_getOnThreadTap();
|
_getOnThreadTap();
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
@@ -1099,7 +1096,9 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
streamChannel = StreamChannel.of(context);
|
streamChannel = StreamChannel.of(context);
|
||||||
|
|
||||||
if (_messageNewListener == null) {
|
if (_messageNewListener == null) {
|
||||||
_messageNewListener?.cancel();
|
initialIndex = _initialIndex;
|
||||||
|
initialAlignment = _initialAlignment;
|
||||||
|
|
||||||
_messageNewListener =
|
_messageNewListener =
|
||||||
streamChannel.channel.on(EventType.messageNew).listen((event) {
|
streamChannel.channel.on(EventType.messageNew).listen((event) {
|
||||||
if (_upToDate) {
|
if (_upToDate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user