Deprecated the currentUserRole getter in channel and introduced currentUserChannelRole

This commit is contained in:
Ayush Shekhar
2022-05-06 20:07:02 +05:30
parent d533c3fbc7
commit aee3a62478
@@ -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<Read> get read => _channelState.read ?? <Read>[];