@wireapp/core 30.0.2 → 30.0.3
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,14 @@
|
|
|
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
|
+
## [30.0.3](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.0.2...@wireapp/core@30.0.3) (2022-08-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wireapp/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [30.0.2](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.0.1...@wireapp/core@30.0.2) (2022-08-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @wireapp/core
|
package/package.json
CHANGED
|
@@ -212,11 +212,11 @@ class NotificationService extends events_1.EventEmitter {
|
|
|
212
212
|
async handleEvent(event, source, dryRun = false) {
|
|
213
213
|
var _a, _b;
|
|
214
214
|
const coreCryptoClient = this.coreCryptoClientProvider();
|
|
215
|
-
if (!coreCryptoClient) {
|
|
216
|
-
throw new Error('Unable to access core crypto client');
|
|
217
|
-
}
|
|
218
215
|
switch (event.type) {
|
|
219
216
|
case Events.CONVERSATION_EVENT.MLS_WELCOME_MESSAGE:
|
|
217
|
+
if (!coreCryptoClient) {
|
|
218
|
+
throw new Error('Unable to access core crypto client');
|
|
219
|
+
}
|
|
220
220
|
const data = bazinga64_1.Decoder.fromBase64(event.data).asBytes;
|
|
221
221
|
// We extract the groupId from the welcome message and let coreCrypto store this group
|
|
222
222
|
const newGroupId = await coreCryptoClient.processWelcomeMessage(data);
|
|
@@ -227,6 +227,9 @@ class NotificationService extends events_1.EventEmitter {
|
|
|
227
227
|
mappedEvent: ConversationMapper_1.ConversationMapper.mapConversationEvent(Object.assign(Object.assign({}, event), { data: groupIdStr }), source),
|
|
228
228
|
};
|
|
229
229
|
case Events.CONVERSATION_EVENT.MLS_MESSAGE_ADD:
|
|
230
|
+
if (!coreCryptoClient) {
|
|
231
|
+
throw new Error('Unable to access core crypto client');
|
|
232
|
+
}
|
|
230
233
|
const encryptedData = bazinga64_1.Decoder.fromBase64(event.data).asBytes;
|
|
231
234
|
const groupId = await this.getUint8ArrayFromConversationGroupId((_a = event.qualified_conversation) !== null && _a !== void 0 ? _a : { id: event.conversation, domain: '' });
|
|
232
235
|
// Check if the message includes proposals
|