add if condition
This commit is contained in:
@@ -326,7 +326,9 @@ class StreamChannelState extends State<StreamChannel> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(covariant StreamChannel oldWidget) {
|
void didUpdateWidget(covariant StreamChannel oldWidget) {
|
||||||
_populateFutures();
|
if (oldWidget.initialMessageId != initialMessageId) {
|
||||||
|
_populateFutures();
|
||||||
|
}
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didUpdateWidget(oldWidget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user