File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,11 @@ export class MatrixRTCSessionManager extends TypedEventEmitter<MatrixRTCSessionM
119
119
const session = this . getRoomSession ( room ) ;
120
120
121
121
const wasActiveAndKnown = session . memberships . length > 0 && ! isNewSession ;
122
- // TODO: we can move this directly into the rtcSession without any performacn impact.
123
- // Because it is possible to subscribe to state events per room. So each session will just
124
- // subscribe to only a subset of events.
122
+ // This needs to be here and the event listener cannot be setup in the MatrixRTCSession,
123
+ // because we need the update to happen between:
124
+ // wasActiveAndKnown = session.memberships.length > 0 and
125
+ // nowActive = session.memberships.length
126
+ // Alternatively we would need to setup some event emission when the RTC session ended.
125
127
session . onRTCSessionMemberUpdate ( ) ;
126
128
127
129
const nowActive = session . memberships . length > 0 ;
You can’t perform that action at this time.
0 commit comments