jr-common-micro 1.1.72 → 1.1.73
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.
|
@@ -105,6 +105,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
105
105
|
forwardedFromGroup: string;
|
|
106
106
|
tickerCards: ChatTickerCardDto[];
|
|
107
107
|
isAnonymous: boolean;
|
|
108
|
+
isOwn: boolean;
|
|
108
109
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
109
110
|
static readonly runtime: typeof proto3;
|
|
110
111
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -202,6 +202,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
202
202
|
forwardedFromGroup = "";
|
|
203
203
|
tickerCards = [];
|
|
204
204
|
isAnonymous = false;
|
|
205
|
+
isOwn = false;
|
|
205
206
|
constructor(data) {
|
|
206
207
|
super();
|
|
207
208
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -232,6 +233,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
232
233
|
{ no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
|
|
233
234
|
{ no: 22, name: "ticker_cards", kind: "message", T: ChatTickerCardDto, repeated: true },
|
|
234
235
|
{ no: 23, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
236
|
+
{ no: 24, name: "is_own", kind: "scalar", T: 8 },
|
|
235
237
|
]);
|
|
236
238
|
static fromBinary(bytes, options) {
|
|
237
239
|
return new ChatMessageDto().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -101,6 +101,11 @@ message ChatMessageDto {
|
|
|
101
101
|
// empty and username carries the GROUP's name. Clients show the group's
|
|
102
102
|
// photo and never link to a profile.
|
|
103
103
|
bool is_anonymous = 23;
|
|
104
|
+
// The viewer authored this anonymous message. Set only in responses
|
|
105
|
+
// addressed to them (history, pins, search, the send ack) — never in a
|
|
106
|
+
// room broadcast — so they keep edit/delete/readers on it without anyone
|
|
107
|
+
// else learning who sent it.
|
|
108
|
+
bool is_own = 24;
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
message ChatTickerCardDto {
|