This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -850,13 +850,17 @@ export class ElementCall extends Call {
850
850
851
851
protected async sendCallNotify ( ) : Promise < void > {
852
852
const room = this . room ;
853
- const existingRoomCallMembers = MatrixRTCSession . callMembershipsForRoom ( room ) . filter (
853
+ const existingOtherRoomCallMembers = MatrixRTCSession . callMembershipsForRoom ( room ) . filter (
854
854
// filter all memberships where the application is m.call and the call_id is ""
855
- ( m ) => m . application === "m.call" && m . callId === "" ,
855
+ ( m ) => {
856
+ const isRoomCallMember = m . application === "m.call" && m . callId === "" ;
857
+ const isThisDevice = m . deviceId === this . client . deviceId ;
858
+ return isRoomCallMember && ! isThisDevice ;
859
+ } ,
856
860
) ;
857
861
858
862
const memberCount = getJoinedNonFunctionalMembers ( room ) . length ;
859
- if ( ! isVideoRoom ( room ) && existingRoomCallMembers . length == 0 ) {
863
+ if ( ! isVideoRoom ( room ) && existingOtherRoomCallMembers . length = == 0 ) {
860
864
// send ringing event
861
865
const content : ICallNotifyContent = {
862
866
"application" : "m.call" ,
You can’t perform that action at this time.
0 commit comments