refactor(llc): move membership from channel_model to channel_state

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-05-19 14:51:28 +05:30
committed by xsahil03x
parent 15b2c10534
commit 63f568bf90
5 changed files with 12 additions and 15 deletions
@@ -174,13 +174,13 @@ class Channel {
/// Relationship of the current user to this channel.
Member? get membership {
_checkInitialized();
return state!._channelState.channel?.membership;
return state!._channelState.membership;
}
/// Relationship of the current user to this channel as a stream.
Stream<Member?> get membershipStream {
_checkInitialized();
return state!.channelStateStream.map((cs) => cs.channel?.membership);
return state!.channelStateStream.map((cs) => cs.membership);
}
/// Channel user creator.