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
+4 -8
View File
@@ -107,10 +107,8 @@ class ChannelBottomSheet extends StatelessWidget {
'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]);
Navigator.pop(context);
}
},
@@ -133,10 +131,8 @@ class ChannelBottomSheet extends StatelessWidget {
'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]);
Navigator.pop(context);
}
},