Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:wireapp/wire-webapp into in-call-han…
Browse files Browse the repository at this point in the history
…d-raise
  • Loading branch information
thisisamir98 committed Dec 4, 2024
2 parents 453af47 + ee3fc70 commit 3357171
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"wire-web-config-default-master": "https://github.com/wireapp/wire-web-config-wire#v0.32.0",
"wire-web-config-default-master": "https://github.com/wireapp/wire-web-config-wire#v0.31.36",
"wire-web-config-default-staging": "https://github.com/wireapp/wire-web-config-default#v0.32.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@wireapp/avs": "10.0.4",
"@wireapp/avs-debugger": "0.0.5",
"@wireapp/commons": "5.4.0",
"@wireapp/core": "46.11.4",
"@wireapp/core": "46.11.6",
"@wireapp/react-ui-kit": "9.28.0",
"@wireapp/store-engine-dexie": "2.1.15",
"@wireapp/telemetry": "0.1.3",
Expand Down
12 changes: 9 additions & 3 deletions src/script/calling/CallingRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ describe('CallingRepository', () => {
buildMediaDevicesHandler(),
);

call.state(CALL_STATE.MEDIA_ESTAB);

conversation.roles({[senderUserId.id]: DefaultConversationRoleName.WIRE_ADMIN});

callingRepository['conversationState'].conversations.push(conversation);
spyOn(callingRepository, 'findCall').and.returnValue(call);
callingRepository['callState'].calls([call]);
spyOn(callingRepository, 'muteCall').and.callThrough();
spyOn(wCall, 'recvMsg').and.callThrough();

Expand Down Expand Up @@ -176,10 +178,12 @@ describe('CallingRepository', () => {
buildMediaDevicesHandler(),
);

call.state(CALL_STATE.MEDIA_ESTAB);

conversation.roles({[senderUserId.id]: DefaultConversationRoleName.WIRE_MEMBER});

callingRepository['conversationState'].conversations.push(conversation);
spyOn(callingRepository, 'findCall').and.returnValue(call);
callingRepository['callState'].calls([call]);
spyOn(callingRepository, 'muteCall').and.callThrough();
spyOn(wCall, 'recvMsg').and.callThrough();

Expand Down Expand Up @@ -220,10 +224,12 @@ describe('CallingRepository', () => {
buildMediaDevicesHandler(),
);

call.state(CALL_STATE.MEDIA_ESTAB);

conversation.roles({[senderUserId.id]: DefaultConversationRoleName.WIRE_ADMIN});

callingRepository['conversationState'].conversations.push(conversation);
spyOn(callingRepository, 'findCall').and.returnValue(call);
callingRepository['callState'].calls([call]);
spyOn(callingRepository, 'muteCall').and.callThrough();
spyOn(wCall, 'recvMsg').and.callThrough();

Expand Down
10 changes: 7 additions & 3 deletions src/script/calling/CallingRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,12 @@ export class CallingRepository {
}

case CALL_MESSAGE_TYPE.REMOTE_MUTE: {
const call = this.findCall(conversationId);
if (!call) {
const currentCall = this.callState.joinedCall();
if (
!currentCall ||
!matchQualifiedIds(currentCall.conversation.qualifiedId, conversationId) ||
!this.selfUser
) {
return;
}

Expand All @@ -783,7 +787,7 @@ export class CallingRepository {
return;
}

this.muteCall(call, true, MuteState.REMOTE_MUTED);
this.muteCall(currentCall, true, MuteState.REMOTE_MUTED);
return this.processCallingMessage(conversation, event);
}

Expand Down

0 comments on commit 3357171

Please sign in to comment.