fix chat info
This commit is contained in:
@@ -357,6 +357,7 @@ class _ChatInfoScreenState extends State<ChatInfoScreen> {
|
|||||||
if (res == true) {
|
if (res == true) {
|
||||||
await channel.delete().then((value) {
|
await channel.delete().then((value) {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
Navigator.pop(context);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -721,7 +721,12 @@ class _ChannelListPageState extends State<ChannelListPage> {
|
|||||||
builder: (context) => StreamChannel(
|
builder: (context) => StreamChannel(
|
||||||
channel: channel,
|
channel: channel,
|
||||||
child: ChatInfoScreen(
|
child: ChatInfoScreen(
|
||||||
user: channel.state.members.first.user,
|
user: channel.state.members
|
||||||
|
.where((m) =>
|
||||||
|
m.userId !=
|
||||||
|
channel.client.state.user.id)
|
||||||
|
.first
|
||||||
|
.user,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user