fix initialIndex bug

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2020-12-17 23:15:56 +05:30
parent 84aa3fbb87
commit 49377b46a2
2 changed files with 50 additions and 32 deletions
+3 -1
View File
@@ -339,7 +339,9 @@ class _ChannelListPageState extends State<ChannelListPage> {
messageResponse.channel.type,
id: messageResponse.channel.id,
);
await channel.watch();
if (channel.state == null) {
await channel.watch();
}
Navigator.pushNamed(
context,
Routes.CHANNEL_PAGE,