@wireapp/core 21.0.0 → 21.0.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,18 @@
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
+ ## [21.0.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@21.0.0...@wireapp/core@21.0.1) (2022-01-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **core:** Improve types for setAvailability ([26da881](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/26da88113adf9eaba987ad22265df758231e5dc1))
12
+ * **core:** Improve types for setAvailability ([dcbada4](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/dcbada4e353296e17307baeac8d4b775158a1436))
13
+
14
+
15
+
16
+
17
+
6
18
  # [21.0.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@20.7.2...@wireapp/core@21.0.0) (2022-01-18)
7
19
 
8
20
 
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "test:project": "yarn dist && yarn test",
70
70
  "test:node": "nyc jasmine --config=jasmine.json"
71
71
  },
72
- "version": "21.0.0",
73
- "gitHead": "0c11c749cae20f3a86839385aeb8486170598339"
72
+ "version": "21.0.1",
73
+ "gitHead": "eddd7ebcdc4868900cd7f80b1da391e124593ec1"
74
74
  }
@@ -18,8 +18,8 @@ export declare class UserService {
18
18
  * @param options.sendAll=false will broadcast the message to all the members of the team (instead of just direct connections). Should be avoided in a big team
19
19
  * @param options.sendAsProtobuf=false
20
20
  */
21
- setAvailability(teamId: string, type: AvailabilityType, { sendAll, sendAsProtobuf }: {
22
- sendAll: boolean;
23
- sendAsProtobuf?: boolean;
21
+ setAvailability(teamId: string, type: AvailabilityType, { sendAll, sendAsProtobuf }?: {
22
+ sendAll?: boolean | undefined;
23
+ sendAsProtobuf?: boolean | undefined;
24
24
  }): Promise<void>;
25
25
  }
@@ -51,7 +51,7 @@ class UserService {
51
51
  * @param options.sendAll=false will broadcast the message to all the members of the team (instead of just direct connections). Should be avoided in a big team
52
52
  * @param options.sendAsProtobuf=false
53
53
  */
54
- async setAvailability(teamId, type, { sendAll = false, sendAsProtobuf = false }) {
54
+ async setAvailability(teamId, type, { sendAll = false, sendAsProtobuf = false } = {}) {
55
55
  // Get pre-key bundles for members of your own team
56
56
  const preKeyBundlesFromTeam = await this.broadcastService.getPreKeyBundlesFromTeam(teamId, false, !sendAll);
57
57
  // Get pre-key bundles for all of your other 1:1 connections