Merge branch 'develop' into fix/channel-unset

This commit is contained in:
Salvatore Giordano
2022-05-19 14:51:36 +02:00
committed by GitHub
9 changed files with 183 additions and 46 deletions
@@ -171,6 +171,18 @@ class Channel {
return state!.channelStateStream.map((cs) => cs.channel?.config);
}
/// Relationship of the current user to this channel.
Member? get membership {
_checkInitialized();
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.membership);
}
/// Channel user creator.
User? get createdBy {
_checkInitialized();