merge master

This commit is contained in:
Salvatore Giordano
2020-08-07 16:53:58 +02:00
parent b95efa0ea5
commit bab5565964
6 changed files with 69 additions and 29 deletions
+5 -10
View File
@@ -339,11 +339,8 @@ class _ChannelListViewState extends State<ChannelListView>
'Do you want to leave the group?',
);
if (confirm == true) {
await channel.removeMembers(channel.state.members
.where((element) =>
element.userId ==
StreamChat.of(context).user.id)
.toList());
await channel
.removeMembers([StreamChat.of(context).user.id]);
}
},
),
@@ -357,11 +354,8 @@ class _ChannelListViewState extends State<ChannelListView>
'Do you want to delete the chat?',
);
if (confirm == true) {
await channel.removeMembers(channel.state.members
.where((element) =>
element.userId ==
StreamChat.of(context).user.id)
.toList());
await channel
.removeMembers([StreamChat.of(context).user.id]);
}
},
),
@@ -472,6 +466,7 @@ class _ChannelListViewState extends State<ChannelListView>
.on(
EventType.connectionRecovered,
EventType.notificationAddedToChannel,
EventType.notificationMessageNew,
EventType.channelVisible,
)
.listen((event) {