fix chat info

This commit is contained in:
Salvatore Giordano
2021-03-01 15:00:21 +01:00
parent 9082e50532
commit 1f18b60cea
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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);
}); });
} }
} }
+6 -1
View File
@@ -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,
), ),
), ),
), ),