@wireapp/core 40.8.2 → 40.8.4
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.
|
@@ -28,7 +28,7 @@ const PayloadHelper_1 = require("../../test/PayloadHelper");
|
|
|
28
28
|
const baseMessageSendingStatus = {
|
|
29
29
|
deleted: {},
|
|
30
30
|
missing: {},
|
|
31
|
-
|
|
31
|
+
failed_to_confirm_clients: {},
|
|
32
32
|
redundant: {},
|
|
33
33
|
time: new Date().toISOString(),
|
|
34
34
|
};
|
|
@@ -126,12 +126,12 @@ describe('MessageService', () => {
|
|
|
126
126
|
await messageService.sendMessage(clientId, generateRecipients(generateUsers(3, 3)), createMessage(message));
|
|
127
127
|
expect(apiClient.api.broadcast.postBroadcastMessage).toHaveBeenCalledWith(clientId, expect.any(Object));
|
|
128
128
|
});
|
|
129
|
-
describe('client mismatch', () => {
|
|
129
|
+
describe('federated client mismatch', () => {
|
|
130
130
|
const baseClientMismatch = {
|
|
131
131
|
deleted: {},
|
|
132
132
|
missing: {},
|
|
133
133
|
redundant: {},
|
|
134
|
-
|
|
134
|
+
failed_to_confirm_clients: {},
|
|
135
135
|
time: new Date().toISOString(),
|
|
136
136
|
};
|
|
137
137
|
it('handles client mismatch when no other clients from that domain are known', async () => {
|
|
@@ -145,9 +145,9 @@ class ProteusService {
|
|
|
145
145
|
this.logger.log(`Successfully sent Proteus message to conversation '${conversationId.id}'`);
|
|
146
146
|
}
|
|
147
147
|
const sendingState = response.canceled ? conversation_1.MessageSendingState.CANCELED : conversation_1.MessageSendingState.OUTGOING_SENT;
|
|
148
|
-
const failedToSend = response.failed || Object.keys((_a = response.
|
|
148
|
+
const failedToSend = response.failed || Object.keys((_a = response.failed_to_confirm_clients) !== null && _a !== void 0 ? _a : {}).length > 0
|
|
149
149
|
? {
|
|
150
|
-
queued: response.
|
|
150
|
+
queued: response.failed_to_confirm_clients,
|
|
151
151
|
failed: response.failed,
|
|
152
152
|
}
|
|
153
153
|
: undefined;
|
|
@@ -458,7 +458,7 @@ describe('ProteusService', () => {
|
|
|
458
458
|
jest.spyOn(proteusService['messageService'], 'sendMessage').mockResolvedValue({
|
|
459
459
|
missing: {},
|
|
460
460
|
redundant: {},
|
|
461
|
-
|
|
461
|
+
failed_to_confirm_clients: { domain2: recipients.domain2 },
|
|
462
462
|
time: new Date().toISOString(),
|
|
463
463
|
deleted: {},
|
|
464
464
|
});
|
package/package.json
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@wireapp/api-client": "^24.20.
|
|
14
|
+
"@wireapp/api-client": "^24.20.2",
|
|
15
15
|
"@wireapp/commons": "^5.1.0",
|
|
16
16
|
"@wireapp/core-crypto": "^1.0.0-rc.1",
|
|
17
17
|
"@wireapp/cryptobox": "12.8.0",
|
|
18
18
|
"@wireapp/promise-queue": "^2.2.0",
|
|
19
19
|
"@wireapp/protocol-messaging": "1.44.0",
|
|
20
20
|
"@wireapp/store-engine": "5.1.1",
|
|
21
|
-
"@wireapp/store-engine-dexie": "^2.1.
|
|
21
|
+
"@wireapp/store-engine-dexie": "^2.1.3",
|
|
22
22
|
"axios": "1.4.0",
|
|
23
23
|
"bazinga64": "6.1.1",
|
|
24
|
-
"deepmerge-ts": "
|
|
24
|
+
"deepmerge-ts": "5.1.0",
|
|
25
25
|
"hash.js": "1.1.7",
|
|
26
26
|
"http-status-codes": "2.2.0",
|
|
27
27
|
"idb": "7.1.1",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"test:coverage": "jest --coverage",
|
|
61
61
|
"watch": "tsc --watch"
|
|
62
62
|
},
|
|
63
|
-
"version": "40.8.
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"version": "40.8.4",
|
|
64
|
+
"gitHead": "0a40867ec906057a327baacfddc38283a504788c"
|
|
65
65
|
}
|