From 4cc7365ffbfeb363c46feb8e9421aac54906909d Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 7 Mar 2025 08:02:55 +0000 Subject: [PATCH] Additional comments --- src/state/CallViewModel.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/state/CallViewModel.ts b/src/state/CallViewModel.ts index cf9e3c6a..bd5bb250 100644 --- a/src/state/CallViewModel.ts +++ b/src/state/CallViewModel.ts @@ -465,11 +465,21 @@ export class CallViewModel extends ViewModel { }, ); + /** + * Observable for changes to the MatrixRTCSession membership list. + * + * We do this to ensure that we only listen once to the event and then share internally. + */ private readonly membershipsChanged$ = fromEvent( this.matrixRTCSession, MatrixRTCSessionEvent.MembershipsChanged, ).pipe(share()); + /** + * Observable for changes to the Matrix Room member data. + * + * We do this to ensure that we only listen once to the event and then share internally. + */ private readonly roomMembers$ = fromEvent( this.matrixRTCSession.room, RoomStateEvent.Members,