Skip to content

Commit

Permalink
chore: adapt new core version (#14734)
Browse files Browse the repository at this point in the history
* chore: bump core

* runfix: adapt core package changes
  • Loading branch information
PatrykBuniX authored Feb 23, 2023
1 parent bd26e70 commit 0f1297c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"@emotion/react": "11.10.6",
"@types/eslint": "8.4.10",
"@wireapp/avs": "9.0.23",
"@wireapp/core": "38.14.0",
"@wireapp/core": "38.15.0",
"@wireapp/lru-cache": "3.8.1",
"@wireapp/react-ui-kit": "9.3.6",
"@wireapp/store-engine-dexie": "2.0.4",
Expand Down
10 changes: 10 additions & 0 deletions src/script/calling/mlsConference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,18 @@ export const getSubconversationEpochInfo = async (
conversationId,
SUBCONVERSATION_ID.CONFERENCE,
);

const parentGroupId = await mlsService.getGroupIdFromConversationId(conversationId);

// this method should not be called if the subconversation (and its parent conversation) is not established
if (!subconversationGroupId || !parentGroupId) {
throw new Error(
`Could not obtain epoch info for conference subconversation of conversation ${JSON.stringify(
conversationId,
)}: parent or subconversation group ID is missing`,
);
}

const members = await generateSubconversationMembers({mlsService}, subconversationGroupId, parentGroupId);

if (shouldAdvanceEpoch) {
Expand Down
8 changes: 8 additions & 0 deletions src/script/view_model/CallingViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ export class CallingViewModel {
SUBCONVERSATION_ID.CONFERENCE,
);

if (!subconversationGroupId) {
return;
}

//we don't want to react to avs callbacks when conversation was not yet established
const isMLSConversationEstablished = await this.mlsService.conversationExists(subconversationGroupId);
if (!isMLSConversationEstablished) {
Expand Down Expand Up @@ -263,6 +267,10 @@ export class CallingViewModel {
SUBCONVERSATION_ID.CONFERENCE,
);

if (!subconversationGroupId) {
return;
}

const isMLSConversationEstablished = await this.mlsService.conversationExists(subconversationGroupId);
if (!isMLSConversationEstablished) {
return;
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4438,9 +4438,9 @@ __metadata:
languageName: node
linkType: hard

"@wireapp/api-client@npm:^22.15.6":
version: 22.15.6
resolution: "@wireapp/api-client@npm:22.15.6"
"@wireapp/api-client@npm:^22.17.0":
version: 22.17.0
resolution: "@wireapp/api-client@npm:22.17.0"
dependencies:
"@wireapp/commons": ^5.0.4
"@wireapp/priority-queue": ^2.0.3
Expand All @@ -4453,7 +4453,7 @@ __metadata:
spark-md5: 3.0.2
tough-cookie: 4.1.2
ws: 8.11.0
checksum: 3ee18e8d933d617699cf6ac8ae56cfd8599a132d969963c617b35b047a3313393c5c6ea58ec0d621e8a55cb9630d7341d12a7803087f0ac84d9bfec037cf7dca
checksum: 5db09aa7576e7dc51e1fe384bab08a10d8bd908da37dc39e55c4667d4a691f8077551b41180498931a50d638b2204360666e9b6a171852491103ad9aed4ded74
languageName: node
linkType: hard

Expand Down Expand Up @@ -4506,11 +4506,11 @@ __metadata:
languageName: node
linkType: hard

"@wireapp/core@npm:38.14.0":
version: 38.14.0
resolution: "@wireapp/core@npm:38.14.0"
"@wireapp/core@npm:38.15.0":
version: 38.15.0
resolution: "@wireapp/core@npm:38.15.0"
dependencies:
"@wireapp/api-client": ^22.15.6
"@wireapp/api-client": ^22.17.0
"@wireapp/commons": ^5.0.4
"@wireapp/core-crypto": 0.6.2
"@wireapp/cryptobox": 12.8.0
Expand All @@ -4526,7 +4526,7 @@ __metadata:
logdown: 3.3.1
long: ^5.2.0
uuidjs: 4.2.13
checksum: dbd8d8e52b24312b2ecc4c31af2b33ad0fa421d807c8cec50c6f44c33fcddd53c671e81035acf7b01124fa2a0fdace5a26306cce32e798c7eee01202b9f4ef35
checksum: 91fe509aef85fd35720c1be03f740d0b342e2083da8ad149c413ed8ba0bc5889103751c00102b50d44667de8257f2f91c1f8329e98ed4aa1d47893c5c30e8343
languageName: node
linkType: hard

Expand Down Expand Up @@ -16926,7 +16926,7 @@ __metadata:
"@typescript-eslint/parser": ^5.52.0
"@wireapp/avs": 9.0.23
"@wireapp/copy-config": 2.0.8
"@wireapp/core": 38.14.0
"@wireapp/core": 38.15.0
"@wireapp/eslint-config": 2.1.1
"@wireapp/lru-cache": 3.8.1
"@wireapp/prettier-config": 0.5.2
Expand Down

0 comments on commit 0f1297c

Please sign in to comment.