fix(core): fix stream channel shows black screen while loading.
Signed-off-by: xsahil03x <xdsahil@gmail.com>
This commit is contained in:
@@ -251,14 +251,14 @@ class StreamChannelState extends State<StreamChannel> {
|
||||
channel.state!.truncate();
|
||||
|
||||
if (messageId == null) {
|
||||
await channel.query(
|
||||
final state = await channel.query(
|
||||
messagesPagination: PaginationParams(
|
||||
limit: limit,
|
||||
),
|
||||
preferOffline: preferOffline,
|
||||
);
|
||||
channel.state!.isUpToDate = true;
|
||||
return null;
|
||||
return state;
|
||||
}
|
||||
|
||||
return channel.query(
|
||||
@@ -451,7 +451,7 @@ class StreamChannelState extends State<StreamChannel> {
|
||||
return widget.child;
|
||||
},
|
||||
);
|
||||
if (initialMessageId != null) {
|
||||
if (_futures.length > 1) {
|
||||
child = Material(child: child);
|
||||
}
|
||||
return child;
|
||||
|
||||
Reference in New Issue
Block a user