From aee3a6247847ab7a4fad688a3881ee251859be8f Mon Sep 17 00:00:00 2001 From: Ayush Shekhar Date: Fri, 6 May 2022 20:07:02 +0530 Subject: [PATCH] Deprecated the currentUserRole getter in channel and introduced currentUserChannelRole --- packages/stream_chat/lib/src/client/channel.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/stream_chat/lib/src/client/channel.dart b/packages/stream_chat/lib/src/client/channel.dart index b25f1bbc..a27b672f 100644 --- a/packages/stream_chat/lib/src/client/channel.dart +++ b/packages/stream_chat/lib/src/client/channel.dart @@ -2017,7 +2017,11 @@ class ChannelClientState { ); /// User role for the current user. - String? get currentUserRole => currentUserMember?.channelRole; + @Deprecated('Please use currentUserChannelRole') + String? get currentUserRole => currentUserMember?.role; + + /// Channel role for the current user + String? get currentUserChannelRole => currentUserMember?.channelRole; /// Channel read list. List get read => _channelState.read ?? [];