@wireapp/core 25.3.1 → 26.0.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,30 @@
|
|
|
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
|
+
# [26.0.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@25.3.1...@wireapp/core@26.0.0) (2022-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Allow sending targeted lastRead and Countly messages ([#4262](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4262)) ([69c7d98](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/69c7d98272dc9beea6e5d9a99d6392177f0be361))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* To send `lastRead` and `countly` as protobuf message, you now need to provide a `MessageSendingOptions` object as last parameter.
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
core.service.conversation.sendLastRead(conversation, timestamp, true);
|
|
20
|
+
|
|
21
|
+
// Becomes
|
|
22
|
+
|
|
23
|
+
core.service.converstaion.sendLastRead(conversation, timestamp, {sendAsProtobuf: true});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [25.3.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@25.3.0...@wireapp/core@25.3.1) (2022-05-16)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @wireapp/core
|
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": "
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"version": "26.0.0",
|
|
73
|
+
"gitHead": "730379c5b3701879632789ca73c1a9d55a9505ad"
|
|
74
74
|
}
|
|
@@ -115,10 +115,10 @@ export declare class ConversationService {
|
|
|
115
115
|
*
|
|
116
116
|
* @param conversationId The conversation which has been read
|
|
117
117
|
* @param lastReadTimestamp The timestamp at which the conversation was read
|
|
118
|
-
* @param
|
|
118
|
+
* @param sendingOptions?
|
|
119
119
|
* @return Resolves when the message has been sent
|
|
120
120
|
*/
|
|
121
|
-
sendLastRead(conversationId: string, lastReadTimestamp: number,
|
|
121
|
+
sendLastRead(conversationId: string, lastReadTimestamp: number, sendingOptions?: MessageSendingOptions): Promise<(MessageSendingStatus & {
|
|
122
122
|
errored?: boolean | undefined;
|
|
123
123
|
}) | (ClientMismatch & {
|
|
124
124
|
errored?: boolean | undefined;
|
|
@@ -127,10 +127,10 @@ export declare class ConversationService {
|
|
|
127
127
|
* Syncs all self user's devices with the countly id
|
|
128
128
|
*
|
|
129
129
|
* @param countlyId The countly id of the current device
|
|
130
|
-
* @param
|
|
130
|
+
* @param sendingOptions?
|
|
131
131
|
* @return Resolves when the message has been sent
|
|
132
132
|
*/
|
|
133
|
-
sendCountlySync(countlyId: string,
|
|
133
|
+
sendCountlySync(countlyId: string, sendingOptions: MessageSendingOptions): Promise<(MessageSendingStatus & {
|
|
134
134
|
errored?: boolean | undefined;
|
|
135
135
|
}) | (ClientMismatch & {
|
|
136
136
|
errored?: boolean | undefined;
|
|
@@ -470,10 +470,10 @@ class ConversationService {
|
|
|
470
470
|
*
|
|
471
471
|
* @param conversationId The conversation which has been read
|
|
472
472
|
* @param lastReadTimestamp The timestamp at which the conversation was read
|
|
473
|
-
* @param
|
|
473
|
+
* @param sendingOptions?
|
|
474
474
|
* @return Resolves when the message has been sent
|
|
475
475
|
*/
|
|
476
|
-
async sendLastRead(conversationId, lastReadTimestamp,
|
|
476
|
+
async sendLastRead(conversationId, lastReadTimestamp, sendingOptions) {
|
|
477
477
|
const lastRead = new protocol_messaging_1.LastRead({
|
|
478
478
|
conversationId,
|
|
479
479
|
lastReadTimestamp,
|
|
@@ -483,19 +483,16 @@ class ConversationService {
|
|
|
483
483
|
messageId: MessageBuilder_1.MessageBuilder.createId(),
|
|
484
484
|
});
|
|
485
485
|
const { id: selfConversationId, domain: selfConversationDomain } = await this.getSelfConversationId();
|
|
486
|
-
return this.sendGenericMessage(this.apiClient.validatedClientId, selfConversationId, genericMessage, {
|
|
487
|
-
conversationDomain: selfConversationDomain,
|
|
488
|
-
sendAsProtobuf,
|
|
489
|
-
});
|
|
486
|
+
return this.sendGenericMessage(this.apiClient.validatedClientId, selfConversationId, genericMessage, Object.assign({ conversationDomain: selfConversationDomain }, sendingOptions));
|
|
490
487
|
}
|
|
491
488
|
/**
|
|
492
489
|
* Syncs all self user's devices with the countly id
|
|
493
490
|
*
|
|
494
491
|
* @param countlyId The countly id of the current device
|
|
495
|
-
* @param
|
|
492
|
+
* @param sendingOptions?
|
|
496
493
|
* @return Resolves when the message has been sent
|
|
497
494
|
*/
|
|
498
|
-
async sendCountlySync(countlyId,
|
|
495
|
+
async sendCountlySync(countlyId, sendingOptions) {
|
|
499
496
|
const { id: selfConversationId, domain: selfConversationDomain } = await this.getSelfConversationId();
|
|
500
497
|
const dataTransfer = new protocol_messaging_1.DataTransfer({
|
|
501
498
|
trackingIdentifier: {
|
|
@@ -506,10 +503,7 @@ class ConversationService {
|
|
|
506
503
|
[conversation_2.GenericMessageType.DATA_TRANSFER]: dataTransfer,
|
|
507
504
|
messageId: MessageBuilder_1.MessageBuilder.createId(),
|
|
508
505
|
});
|
|
509
|
-
return this.sendGenericMessage(this.apiClient.validatedClientId, selfConversationId, genericMessage, {
|
|
510
|
-
conversationDomain: selfConversationDomain,
|
|
511
|
-
sendAsProtobuf,
|
|
512
|
-
});
|
|
506
|
+
return this.sendGenericMessage(this.apiClient.validatedClientId, selfConversationId, genericMessage, Object.assign({ conversationDomain: selfConversationDomain }, sendingOptions));
|
|
513
507
|
}
|
|
514
508
|
/**
|
|
515
509
|
* Get a fresh list from backend of clients for all the participants of the conversation.
|