@wireapp/core 45.2.6 → 45.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/conversation/ConversationService/ConversationService.d.ts.map +1 -1
- package/lib/conversation/ConversationService/ConversationService.js +17 -1
- package/lib/conversation/ConversationService/ConversationService.test.js +24 -0
- package/lib/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.d.ts.map +1 -1
- package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts +2 -0
- package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.d.ts.map +1 -1
- package/lib/messagingProtocols/mls/MLSService/CoreCryptoMLSError.js +6 -1
- package/lib/messagingProtocols/proteus/Utility/SessionHandler/SessionHandler.d.ts.map +1 -1
- package/lib/notification/NotificationService.js +2 -2
- package/lib/util/LocalStorageStore/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationService.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationService/ConversationService.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,oBAAoB,EAEpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAEnB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,YAAY,EAIZ,4BAA4B,EAE7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAIvD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAEL,cAAc,EAEd,6BAA6B,EAC7B,oBAAoB,EACpB,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,YAAY,EAAuB,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"ConversationService.d.ts","sourceRoot":"","sources":["../../../src/conversation/ConversationService/ConversationService.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACX,eAAe,EACf,oBAAoB,EAEpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAEnB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EACL,YAAY,EAIZ,4BAA4B,EAE7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAIvD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAEL,cAAc,EAEd,6BAA6B,EAC7B,oBAAoB,EACpB,UAAU,EACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAC,YAAY,EAAuB,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAMxD,OAAO,EAAkC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AACjG,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACzB,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAAsB,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAC,sBAAsB,EAAC,MAAM,kDAAkD,CAAC;AAExF,KAAK,MAAM,GAAG;IACZ,wBA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,kBAAkB,CAAC;CAoB3E"}
|
|
@@ -496,7 +496,23 @@ class ConversationService extends commons_1.TypedEventEmitter {
|
|
|
496
496
|
return this.handleConversationEpochMismatch(mlsConversation, () => this.emit('MLSConversationRecovered', { conversationId: mlsConversation.qualified_id }));
|
|
497
497
|
}
|
|
498
498
|
async handleMLSWelcomeMessageEvent(event) {
|
|
499
|
-
|
|
499
|
+
try {
|
|
500
|
+
return await this.mlsService.handleMLSWelcomeMessageEvent(event, this.apiClient.validatedClientId);
|
|
501
|
+
}
|
|
502
|
+
catch (error) {
|
|
503
|
+
if ((0, CoreCryptoMLSError_1.isCoreCryptoMLSOrphanWelcomeMessageError)(error)) {
|
|
504
|
+
const { qualified_conversation: conversationId } = event;
|
|
505
|
+
// Note that we don't care about a subconversation here, as the welcome message is always for the parent conversation.
|
|
506
|
+
// Subconversations are always joined via external commit.
|
|
507
|
+
if (!conversationId) {
|
|
508
|
+
throw new Error('Qualified conversation id is missing in the event');
|
|
509
|
+
}
|
|
510
|
+
this.logger.info(`Received an orphan welcome message, joining the conversation (${conversationId.id}) via external commit...`);
|
|
511
|
+
void (0, conversationRejoinQueue_1.queueConversationRejoin)(conversationId.id, () => this.joinByExternalCommit(conversationId));
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
throw error;
|
|
515
|
+
}
|
|
500
516
|
}
|
|
501
517
|
async handleOtrMessageAddEvent(event) {
|
|
502
518
|
return this.proteusService.handleOtrMessageAddEvent(event);
|
|
@@ -63,6 +63,14 @@ const createMLSMessageAddEventMock = (conversationId, subconversationId) => ({
|
|
|
63
63
|
time: '2023-08-21T06:47:43.387Z',
|
|
64
64
|
subconv: subconversationId,
|
|
65
65
|
});
|
|
66
|
+
const createMLSWelcomeMessageEventMock = (conversationId) => ({
|
|
67
|
+
data: '',
|
|
68
|
+
conversation: conversationId.id,
|
|
69
|
+
qualified_conversation: conversationId,
|
|
70
|
+
from: '',
|
|
71
|
+
type: event_1.CONVERSATION_EVENT.MLS_WELCOME_MESSAGE,
|
|
72
|
+
time: '2023-08-21T06:47:43.387Z',
|
|
73
|
+
});
|
|
66
74
|
jest.mock('../../messagingProtocols/proteus', () => (Object.assign(Object.assign({}, jest.requireActual('../../messagingProtocols/proteus')), { getGenericMessageParams: jest.fn(), getRecipientsForConversation: jest.fn(), getConversationQualifiedMembers: jest.fn() })));
|
|
67
75
|
const MockedMessagingProtocols = MessagingProtocols;
|
|
68
76
|
jest.mock('../message/messageSender', () => (Object.assign(Object.assign({}, jest.requireActual('../message/messageSender')), { sendMessage: jest.fn().mockImplementation(fn => fn()) })));
|
|
@@ -107,6 +115,7 @@ describe('ConversationService', () => {
|
|
|
107
115
|
getKeyPackagesPayload: jest.fn(),
|
|
108
116
|
addUsersToExistingConversation: jest.fn(),
|
|
109
117
|
resetKeyMaterialRenewal: jest.fn(),
|
|
118
|
+
handleMLSWelcomeMessageEvent: jest.fn(),
|
|
110
119
|
};
|
|
111
120
|
const mockedDb = await (0, CoreDB_1.openDB)('core-test-db');
|
|
112
121
|
const groupIdFromConversationId = jest.fn(async () => 'groupId');
|
|
@@ -414,6 +423,21 @@ describe('ConversationService', () => {
|
|
|
414
423
|
expect(conversationService.joinByExternalCommit).not.toHaveBeenCalled();
|
|
415
424
|
expect(subconversationService.joinConferenceSubconversation).toHaveBeenCalledWith(conversationId, 'groupId');
|
|
416
425
|
});
|
|
426
|
+
it('joins a MLS conversation if it was sent an orphan welcome message', async () => {
|
|
427
|
+
const [conversationService, { apiClient, mlsService }] = await buildConversationService();
|
|
428
|
+
const conversationId = { id: 'conversationId', domain: 'staging.zinfra.io' };
|
|
429
|
+
const mockMLSWelcomeMessageEvent = createMLSWelcomeMessageEventMock(conversationId);
|
|
430
|
+
jest
|
|
431
|
+
.spyOn(mlsService, 'handleMLSWelcomeMessageEvent')
|
|
432
|
+
.mockRejectedValueOnce(new Error(CoreCryptoMLSError_1.CoreCryptoMLSError.ORPHAN_WELCOME_MESSAGE));
|
|
433
|
+
jest.spyOn(apiClient.api.conversation, 'getConversation').mockResolvedValueOnce({
|
|
434
|
+
qualified_id: conversationId,
|
|
435
|
+
protocol: conversation_1.ConversationProtocol.MLS,
|
|
436
|
+
});
|
|
437
|
+
await conversationService.handleEvent(mockMLSWelcomeMessageEvent);
|
|
438
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
439
|
+
expect(conversationService.joinByExternalCommit).toHaveBeenCalledWith(conversationId);
|
|
440
|
+
});
|
|
417
441
|
});
|
|
418
442
|
describe('getConversations', () => {
|
|
419
443
|
it('returns a list of conversations by conversation ids', async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncomingMesssagesQueue.d.ts","sourceRoot":"","sources":["../../../../../../../src/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,uBAAuB,kCAAyC,GAAG,EAAE,KAAK,GAAG,WAC/E,MAAM,
|
|
1
|
+
{"version":3,"file":"IncomingMesssagesQueue.d.ts","sourceRoot":"","sources":["../../../../../../../src/messagingProtocols/mls/EventHandler/events/messageAdd/IncomingMessagesQueue/IncomingMesssagesQueue.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,uBAAuB,kCAAyC,GAAG,EAAE,KAAK,GAAG,WAC/E,MAAM,WACN,YAAY,KACpB,QAAQ,WAAW,YAAY,CAAC,CAGlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAa,MAAM,SAErD,CAAC;AAcF,eAAO,MAAM,0BAA0B,eAAsB,MAAM,MAAM,MAAM,QAAQ,CAAC,CAAC,KAAG,QAAQ,CAAC,CAUpG,CAAC"}
|
|
@@ -9,8 +9,10 @@ export declare const CoreCryptoMLSError: {
|
|
|
9
9
|
readonly DUPLICATE_MESSAGE: "We already decrypted this message once";
|
|
10
10
|
};
|
|
11
11
|
readonly CONVERSATION_ALREADY_EXISTS: "Conversation already exists";
|
|
12
|
+
readonly ORPHAN_WELCOME_MESSAGE: "Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit";
|
|
12
13
|
};
|
|
13
14
|
export declare const isCoreCryptoMLSWrongEpochError: (error: unknown) => boolean;
|
|
14
15
|
export declare const isCoreCryptoMLSConversationAlreadyExistsError: (error: unknown) => boolean;
|
|
16
|
+
export declare const isCoreCryptoMLSOrphanWelcomeMessageError: (error: unknown) => boolean;
|
|
15
17
|
export declare const shouldMLSDecryptionErrorBeIgnored: (error: unknown) => error is Error;
|
|
16
18
|
//# sourceMappingURL=CoreCryptoMLSError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreCryptoMLSError.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/MLSService/CoreCryptoMLSError.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"CoreCryptoMLSError.d.ts","sourceRoot":"","sources":["../../../../src/messagingProtocols/mls/MLSService/CoreCryptoMLSError.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAcrB,CAAC;AAEX,eAAO,MAAM,8BAA8B,UAAW,OAAO,KAAG,OAE/D,CAAC;AAEF,eAAO,MAAM,6CAA6C,UAAW,OAAO,KAAG,OAE9E,CAAC;AAEF,eAAO,MAAM,wCAAwC,UAAW,OAAO,KAAG,OAEzE,CAAC;AAWF,eAAO,MAAM,iCAAiC,UAAW,OAAO,mBAE/D,CAAC"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.shouldMLSDecryptionErrorBeIgnored = exports.isCoreCryptoMLSConversationAlreadyExistsError = exports.isCoreCryptoMLSWrongEpochError = exports.CoreCryptoMLSError = void 0;
|
|
21
|
+
exports.shouldMLSDecryptionErrorBeIgnored = exports.isCoreCryptoMLSOrphanWelcomeMessageError = exports.isCoreCryptoMLSConversationAlreadyExistsError = exports.isCoreCryptoMLSWrongEpochError = exports.CoreCryptoMLSError = void 0;
|
|
22
22
|
exports.CoreCryptoMLSError = {
|
|
23
23
|
DECRYPTION: {
|
|
24
24
|
WRONG_EPOCH: 'Incoming message is for the wrong epoch',
|
|
@@ -30,6 +30,7 @@ exports.CoreCryptoMLSError = {
|
|
|
30
30
|
DUPLICATE_MESSAGE: 'We already decrypted this message once',
|
|
31
31
|
},
|
|
32
32
|
CONVERSATION_ALREADY_EXISTS: 'Conversation already exists',
|
|
33
|
+
ORPHAN_WELCOME_MESSAGE: 'Although this Welcome seems valid, the local KeyPackage it references has already been deleted locally. Join this group with an external commit',
|
|
33
34
|
};
|
|
34
35
|
const isCoreCryptoMLSWrongEpochError = (error) => {
|
|
35
36
|
return error instanceof Error && error.message === exports.CoreCryptoMLSError.DECRYPTION.WRONG_EPOCH;
|
|
@@ -39,6 +40,10 @@ const isCoreCryptoMLSConversationAlreadyExistsError = (error) => {
|
|
|
39
40
|
return error instanceof Error && error.message === exports.CoreCryptoMLSError.CONVERSATION_ALREADY_EXISTS;
|
|
40
41
|
};
|
|
41
42
|
exports.isCoreCryptoMLSConversationAlreadyExistsError = isCoreCryptoMLSConversationAlreadyExistsError;
|
|
43
|
+
const isCoreCryptoMLSOrphanWelcomeMessageError = (error) => {
|
|
44
|
+
return error instanceof Error && error.message === exports.CoreCryptoMLSError.ORPHAN_WELCOME_MESSAGE;
|
|
45
|
+
};
|
|
46
|
+
exports.isCoreCryptoMLSOrphanWelcomeMessageError = isCoreCryptoMLSOrphanWelcomeMessageError;
|
|
42
47
|
const mlsDecryptionErrorsToIgnore = [
|
|
43
48
|
exports.CoreCryptoMLSError.DECRYPTION.ALREADY_DECRYPTED,
|
|
44
49
|
exports.CoreCryptoMLSError.DECRYPTION.EXTERNAL_COMMIT_NOT_MERGED,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionHandler.d.ts","sourceRoot":"","sources":["../../../../../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,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;CAC5B;AACD,iBAAe,aAAa,CAAC,MAAM,EAAE,mBAAmB,iBAGvD;AA4CD,KAAK,iBAAiB,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9E;;GAEG;AACH,QAAA,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"SessionHandler.d.ts","sourceRoot":"","sources":["../../../../../src/messagingProtocols/proteus/Utility/SessionHandler/SessionHandler.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAC,MAAM,8BAA8B,CAAC;AAEvF,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAK9C,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAE/D,UAAU,wBAAwB;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG;IACxB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,kBAAkB,yBAAwB,wBAAwB,KAAG,MAI1E,CAAC;AA6BF;;;GAGG;AACH,QAAA,MAAM,WAAW;YAC6B,WAAW;cAAY,MAAM;;;eAClC,SAAS;kBAAgB,YAAY;MAC3E,QAAQ,MAAM,CAUhB,CAAC;AAqBF,UAAU,wCAAwC;IAChD,UAAU,EAAE,oBAAoB,GAAG,4BAA4B,CAAC;IAChE,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,QAAA,MAAM,YAAY,qDAKf,wCAAwC,KAAG,QAAQ,kBAAkB,CAwDvE,CAAC;AAEF,UAAU,mBAAmB;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;CAC5B;AACD,iBAAe,aAAa,CAAC,MAAM,EAAE,mBAAmB,iBAGvD;AA4CD,KAAK,iBAAiB,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9E;;GAEG;AACH,QAAA,MAAM,sBAAsB,gBAAiB,IAAI,MAAM,EAAE,CAAC,CAAC,KAAG,kBAAkB,CAAC,CAYhF,CAAC;AAEF,OAAO,EAAC,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAC,CAAC"}
|
|
@@ -147,8 +147,8 @@ class NotificationService extends commons_1.TypedEventEmitter {
|
|
|
147
147
|
}
|
|
148
148
|
return false;
|
|
149
149
|
}
|
|
150
|
-
handleNotification(
|
|
151
|
-
return __asyncGenerator(this, arguments, function* handleNotification_1() {
|
|
150
|
+
handleNotification(notification_1, source_1) {
|
|
151
|
+
return __asyncGenerator(this, arguments, function* handleNotification_1(notification, source, dryRun = false) {
|
|
152
152
|
for (const event of notification.payload) {
|
|
153
153
|
this.logger.log(`Handling event of type "${event.type}" for notification with ID "${notification.id}"`, event);
|
|
154
154
|
let lastEventDate = undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/LocalStorageStore/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,iBAAiB,qBAAsB,MAAM;eAC7C,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/LocalStorageStore/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,iBAAiB,qBAAsB,MAAM;eAC7C,MAAM,KAAG,CAAC,GAAG,SAAS;eAUtB,MAAM,SAAS,CAAC;kBACb,MAAM;eACT,MAAM;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@wireapp/api-client": "^26.11.2",
|
|
15
15
|
"@wireapp/commons": "^5.2.7",
|
|
16
|
-
"@wireapp/core-crypto": "1.0.0-rc.
|
|
16
|
+
"@wireapp/core-crypto": "1.0.0-rc.49",
|
|
17
17
|
"@wireapp/cryptobox": "12.8.0",
|
|
18
18
|
"@wireapp/priority-queue": "^2.1.5",
|
|
19
19
|
"@wireapp/promise-queue": "^2.3.2",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"test:coverage": "jest --coverage",
|
|
62
62
|
"watch": "tsc --watch"
|
|
63
63
|
},
|
|
64
|
-
"version": "45.2.
|
|
65
|
-
"gitHead": "
|
|
64
|
+
"version": "45.2.8",
|
|
65
|
+
"gitHead": "56f1b044d8083758f6ded1702ac290d507fad56e"
|
|
66
66
|
}
|