change reconnection logic
This commit is contained in:
@@ -192,7 +192,10 @@ class ChannelListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => client.connect(),
|
onPressed: () async {
|
||||||
|
await client.disconnect();
|
||||||
|
return client.connect();
|
||||||
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'Try Again',
|
'Try Again',
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user