File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -595,19 +595,26 @@ export class ElementCall extends Call {
595595 const isDM = ! ! DMRoomMap . shared ( ) . getUserIdForRoomId ( room . roomId ) ;
596596 const oldestCallMember = client . matrixRTC . getRoomSession ( room ) . getOldestMembership ( ) ;
597597 const hasCallStarted = ! ! oldestCallMember && oldestCallMember . sender !== client . getSafeUserId ( ) ;
598+ // XXX: @element -hq/element-call-embedded <= 0.15.0 sets the wrong parameter for
599+ // preload by default so we override here. This can be removed when that package
600+ // is released and upgraded.
598601 if ( isDM ) {
599602 params . append ( "sendNotificationType" , "ring" ) ;
600603 if ( hasCallStarted ) {
601604 params . append ( "intent" , ElementCallIntent . JoinExistingDM ) ;
605+ params . append ( "preload" , "false" ) ;
602606 } else {
603607 params . append ( "intent" , ElementCallIntent . StartCallDM ) ;
608+ params . append ( "preload" , "false" ) ;
604609 }
605610 } else {
606611 params . append ( "sendNotificationType" , "notification" ) ;
607612 if ( hasCallStarted ) {
608613 params . append ( "intent" , ElementCallIntent . JoinExisting ) ;
614+ params . append ( "preload" , "false" ) ;
609615 } else {
610616 params . append ( "intent" , ElementCallIntent . StartCall ) ;
617+ params . append ( "preload" , "false" ) ;
611618 }
612619 }
613620 }
You can’t perform that action at this time.
0 commit comments