fixed deprecation issues

This commit is contained in:
sonykurian96
2021-07-28 21:19:09 +05:30
parent d5cff7e2c2
commit ffe11de4f9
10 changed files with 24 additions and 24 deletions
@@ -66,7 +66,7 @@ class _ChannelPageState extends State<ChannelPage> {
var channel = StreamChannel.of(context).channel;
if (channel.memberCount == 2 && channel.isDistinct) {
final currentUser = StreamChat.of(context).user;
final currentUser = StreamChat.of(context).currentUser;
final otherUser = channel.state!.members.firstWhereOrNull(
(element) => element.user!.id != currentUser!.id,
);