@wireapp/core 30.11.2 → 30.12.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,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.12.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.11.2...@wireapp/core@30.12.0) (2022-09-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * leave mls convo - refactor (FS-683) ([#4401](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4401)) ([909e142](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/909e142753035fb54c8b4f19076a1dec646f6b97))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [30.11.2](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.11.1...@wireapp/core@30.11.2) (2022-09-19)
7
18
 
8
19
  **Note:** Version bump only for package @wireapp/core
package/package.json CHANGED
@@ -75,6 +75,6 @@
75
75
  "test": "jest",
76
76
  "watch": "tsc ---watch"
77
77
  },
78
- "version": "30.11.2",
79
- "gitHead": "4e82d31760bc2f55bc345027b3e01d3ecbd2ee07"
78
+ "version": "30.12.0",
79
+ "gitHead": "edc6fac3ddb27f77cf2238a1480559235313fe64"
80
80
  }
@@ -110,11 +110,6 @@ export declare class ConversationService {
110
110
  fetchAllParticipantsClients(conversationId: string, conversationDomain?: string): Promise<UserClients | QualifiedUserClients>;
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
- leaveConversation(conversationId: QualifiedId): Promise<ConversationMemberLeaveEvent>;
114
- /**
115
- * @depricated seems not to be used and is outdated. use leaveConversation instead
116
- */
117
- leaveConversations(conversationIds?: string[]): Promise<ConversationMemberLeaveEvent[]>;
118
113
  /**
119
114
  * Create a group conversation.
120
115
  * @param {string} name
@@ -138,7 +133,7 @@ export declare class ConversationService {
138
133
  getAsset({ assetId, assetToken, otrKey, sha256 }: RemoteData): Promise<Uint8Array>;
139
134
  getUnencryptedAsset(assetId: string, assetToken?: string): Promise<ArrayBuffer>;
140
135
  addUsersToProteusConversation({ conversationId, qualifiedUserIds }: Omit<AddUsersParams, 'groupId'>): Promise<import("@wireapp/api-client/src/event").ConversationMemberJoinEvent>;
141
- removeUserFromProteusConversation(conversationId: QualifiedId, userId: QualifiedId): Promise<ConversationMemberLeaveEvent>;
136
+ removeUserFromConversation(conversationId: QualifiedId, userId: QualifiedId): Promise<ConversationMemberLeaveEvent>;
142
137
  private sendProteusMessage;
143
138
  /**
144
139
  * Sends a message to a conversation
@@ -617,27 +617,6 @@ class ConversationService {
617
617
  type: conversation_2.PayloadBundleType.MESSAGE_DELETE,
618
618
  };
619
619
  }
620
- leaveConversation(conversationId) {
621
- if (!this.apiClient.context || !this.apiClient.context.userId || !this.apiClient.context.domain) {
622
- throw new Error('Cannot leave conversation without a userId and domain');
623
- }
624
- return this.apiClient.api.conversation.deleteMember(conversationId, {
625
- domain: this.apiClient.context.domain,
626
- id: this.apiClient.context.userId,
627
- });
628
- }
629
- /**
630
- * @depricated seems not to be used and is outdated. use leaveConversation instead
631
- */
632
- async leaveConversations(conversationIds) {
633
- if (!conversationIds) {
634
- const conversation = await this.getConversations();
635
- conversationIds = conversation
636
- .filter(conversation => conversation.type === conversation_1.CONVERSATION_TYPE.REGULAR)
637
- .map(conversation => conversation.id);
638
- }
639
- return Promise.all(conversationIds.map(conversationId => { var _a, _b; return this.leaveConversation({ id: conversationId, domain: (_b = (_a = this.apiClient.context) === null || _a === void 0 ? void 0 : _a.domain) !== null && _b !== void 0 ? _b : '' }); }));
640
- }
641
620
  createProteusConversation(conversationData, otherUserIds) {
642
621
  let payload;
643
622
  if (typeof conversationData === 'string') {
@@ -678,7 +657,7 @@ class ConversationService {
678
657
  async addUsersToProteusConversation({ conversationId, qualifiedUserIds }) {
679
658
  return this.apiClient.api.conversation.postMembers(conversationId, qualifiedUserIds);
680
659
  }
681
- async removeUserFromProteusConversation(conversationId, userId) {
660
+ async removeUserFromConversation(conversationId, userId) {
682
661
  return this.apiClient.api.conversation.deleteMember(conversationId, userId);
683
662
  }
684
663
  async sendProteusMessage(params, genericMessage, content) {