@wireapp/core 28.5.1 → 28.6.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [28.6.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@28.6.0...@wireapp/core@28.6.1) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wireapp/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [28.6.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@28.5.2...@wireapp/core@28.6.0) (2022-07-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **core, api-client:** Use backend timestamp for mls messages ([#4332](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4332)) ([10f7a13](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/10f7a13e05eebd546beaeb394a2b3eeb54047ad5))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [28.5.2](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@28.5.1...@wireapp/core@28.5.2) (2022-07-18)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @wireapp/core
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [28.5.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@28.5.0...@wireapp/core@28.5.1) (2022-07-15)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @wireapp/core
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"@otak/core-crypto": "0.3.0-beta-1",
|
|
8
8
|
"@types/long": "4.0.1",
|
|
9
9
|
"@types/node": "~14",
|
|
10
|
-
"@wireapp/api-client": "19.
|
|
10
|
+
"@wireapp/api-client": "19.16.0",
|
|
11
11
|
"@wireapp/commons": "4.3.0",
|
|
12
12
|
"@wireapp/cryptobox": "12.8.0",
|
|
13
13
|
"@wireapp/store-engine-dexie": "1.6.10",
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"test:node": "nyc jasmine --config=jasmine.json",
|
|
78
78
|
"watch": "tsc ---watch"
|
|
79
79
|
},
|
|
80
|
-
"version": "28.
|
|
81
|
-
"gitHead": "
|
|
80
|
+
"version": "28.6.1",
|
|
81
|
+
"gitHead": "3b88618474db604856f9ea32e935723e2f9c11b7"
|
|
82
82
|
}
|
package/src/main/Account.js
CHANGED
|
@@ -380,7 +380,7 @@ class Account extends events_1.EventEmitter {
|
|
|
380
380
|
}
|
|
381
381
|
generateDbName(context) {
|
|
382
382
|
const clientType = context.clientType === client_1.ClientType.NONE ? '' : `@${context.clientType}`;
|
|
383
|
-
return `wire@${this.apiClient.config.urls.name}@${context.userId}${clientType}`;
|
|
383
|
+
return `wire@${this.apiClient.config.urls.name}@${context.userId}@${context.clientId}${clientType}`;
|
|
384
384
|
}
|
|
385
385
|
async initEngine(context) {
|
|
386
386
|
const dbName = this.generateDbName(context);
|
|
@@ -729,8 +729,8 @@ class ConversationService {
|
|
|
729
729
|
const coreCryptoClient = this.coreCryptoClientProvider();
|
|
730
730
|
const encrypted = await coreCryptoClient.encryptMessage(groupIdBytes, protocol_messaging_1.GenericMessage.encode(genericMessage).finish());
|
|
731
731
|
try {
|
|
732
|
-
await this.apiClient.api.conversation.postMlsMessage(encrypted);
|
|
733
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(genericMessage, new Date().toISOString());
|
|
732
|
+
const { time = '' } = await this.apiClient.api.conversation.postMlsMessage(encrypted);
|
|
733
|
+
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(genericMessage, (time === null || time === void 0 ? void 0 : time.length) > 0 ? time : new Date().toISOString());
|
|
734
734
|
return Object.assign(Object.assign({}, payload), { content, messageTimer: ((_a = genericMessage.ephemeral) === null || _a === void 0 ? void 0 : _a.expireAfterMillis) || 0, state: conversation_2.PayloadBundleState.OUTGOING_SENT });
|
|
735
735
|
}
|
|
736
736
|
catch (_c) {
|