@wireapp/core 28.5.0 → 28.6.0

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.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)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+ **Note:** Version bump only for package @wireapp/core
20
+
21
+
22
+
23
+
24
+
25
+ ## [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)
26
+
27
+ **Note:** Version bump only for package @wireapp/core
28
+
29
+
30
+
31
+
32
+
6
33
  # [28.5.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@28.4.7...@wireapp/core@28.5.0) (2022-07-15)
7
34
 
8
35
 
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.15.0",
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.5.0",
81
- "gitHead": "9d06dbf709b35ec4c5d0f3e2aa3b2fdd370da607"
80
+ "version": "28.6.0",
81
+ "gitHead": "cf389aee57cd27cb3e84473850b2727e1c2f72d6"
82
82
  }
@@ -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) {