@wireapp/core 30.10.0 → 30.11.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 +11 -0
- package/package.json +2 -2
- package/src/main/conversation/ConversationService/ConversationService.d.ts +1 -1
- package/src/main/conversation/ConversationService/ConversationService.js +3 -3
- package/src/main/mls/MLSService/MLSService.d.ts +1 -0
- package/src/main/mls/MLSService/MLSService.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.11.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.10.0...@wireapp/core@30.11.0) (2022-09-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* leave mls conversation (FS-683) ([#4399](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4399)) ([4e5087a](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/4e5087a8c224d95e1685376fedee202b2b4cb039))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [30.10.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.9.0...@wireapp/core@30.10.0) (2022-09-15)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -111,7 +111,6 @@ export declare class ConversationService {
|
|
|
111
111
|
deleteMessageLocal(conversationId: string, messageIdToHide: string, sendAsProtobuf?: boolean, conversationDomain?: string): Promise<HideMessage>;
|
|
112
112
|
deleteMessageEveryone(conversationId: string, messageIdToDelete: string, userIds?: string[] | QualifiedId[] | UserClients | QualifiedUserClients, sendAsProtobuf?: boolean, conversationDomain?: string, callbacks?: MessageSendingCallbacks): Promise<DeleteMessage>;
|
|
113
113
|
leaveConversation(conversationId: QualifiedId): Promise<ConversationMemberLeaveEvent>;
|
|
114
|
-
leaveMLSConversation(conversationId: QualifiedId): Promise<ConversationMemberLeaveEvent>;
|
|
115
114
|
/**
|
|
116
115
|
* @depricated seems not to be used and is outdated. use leaveConversation instead
|
|
117
116
|
*/
|
|
@@ -171,4 +170,5 @@ export declare class ConversationService {
|
|
|
171
170
|
*/
|
|
172
171
|
sendExternalJoinProposal(conversationGroupId: string, epoch: number): Promise<void>;
|
|
173
172
|
isMLSConversationEstablished(conversationGroupId: string): Promise<boolean>;
|
|
173
|
+
wipeMLSConversation(conversationId: Uint8Array): Promise<void>;
|
|
174
174
|
}
|
|
@@ -625,9 +625,6 @@ class ConversationService {
|
|
|
625
625
|
id: this.apiClient.context.userId,
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
|
-
leaveMLSConversation(conversationId) {
|
|
629
|
-
return this.leaveConversation(conversationId);
|
|
630
|
-
}
|
|
631
628
|
/**
|
|
632
629
|
* @depricated seems not to be used and is outdated. use leaveConversation instead
|
|
633
630
|
*/
|
|
@@ -934,6 +931,9 @@ class ConversationService {
|
|
|
934
931
|
const groupIdDecodedFromBase64 = bazinga64_1.Decoder.fromBase64(conversationGroupId).asBytes;
|
|
935
932
|
return this.mlsService.conversationExists(groupIdDecodedFromBase64);
|
|
936
933
|
}
|
|
934
|
+
async wipeMLSConversation(conversationId) {
|
|
935
|
+
return this.mlsService.wipeConversation(conversationId);
|
|
936
|
+
}
|
|
937
937
|
}
|
|
938
938
|
exports.ConversationService = ConversationService;
|
|
939
939
|
//# sourceMappingURL=ConversationService.js.map
|
|
@@ -33,4 +33,5 @@ export declare class MLSService {
|
|
|
33
33
|
*/
|
|
34
34
|
uploadMLSPublicKeys(publicKey: Uint8Array, clientId: string): Promise<void>;
|
|
35
35
|
uploadMLSKeyPackages(keypackages: Uint8Array[], clientId: string): Promise<void>;
|
|
36
|
+
wipeConversation(conversationId: ConversationId): Promise<void>;
|
|
36
37
|
}
|
|
@@ -148,6 +148,9 @@ class MLSService {
|
|
|
148
148
|
async uploadMLSKeyPackages(keypackages, clientId) {
|
|
149
149
|
return this.apiClient.api.client.uploadMLSKeyPackages(clientId, keypackages.map(keypackage => btoa(bazinga64_1.Converter.arrayBufferViewToBaselineString(keypackage))));
|
|
150
150
|
}
|
|
151
|
+
async wipeConversation(conversationId) {
|
|
152
|
+
return this.getCoreCryptoClient().wipeConversation(conversationId);
|
|
153
|
+
}
|
|
151
154
|
}
|
|
152
155
|
exports.MLSService = MLSService;
|
|
153
156
|
//# sourceMappingURL=MLSService.js.map
|