jr-common-micro 1.1.66 → 1.1.68

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.
@@ -59,6 +59,8 @@ export interface ChatMessageDto {
59
59
  poll: ChatPollDto | undefined;
60
60
  media: ChatMediaDto | undefined;
61
61
  link_preview: ChatLinkPreviewDto | undefined;
62
+ forwarded_from: string;
63
+ forwarded_from_group: string;
62
64
  }
63
65
  export interface ChatLinkPreviewDto {
64
66
  url: string;
@@ -100,6 +100,8 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
100
100
  poll?: ChatPollDto;
101
101
  media?: ChatMediaDto;
102
102
  linkPreview?: ChatLinkPreviewDto;
103
+ forwardedFrom: string;
104
+ forwardedFromGroup: string;
103
105
  constructor(data?: PartialMessage<ChatMessageDto>);
104
106
  static readonly runtime: typeof proto3;
105
107
  static readonly typeName = "micro.v1.chat.ChatMessageDto";
@@ -196,6 +196,8 @@ class ChatMessageDto extends protobuf_1.Message {
196
196
  poll;
197
197
  media;
198
198
  linkPreview;
199
+ forwardedFrom = "";
200
+ forwardedFromGroup = "";
199
201
  constructor(data) {
200
202
  super();
201
203
  protobuf_1.proto3.util.initPartial(data, this);
@@ -222,6 +224,8 @@ class ChatMessageDto extends protobuf_1.Message {
222
224
  { no: 17, name: "poll", kind: "message", T: ChatPollDto },
223
225
  { no: 18, name: "media", kind: "message", T: ChatMediaDto },
224
226
  { no: 19, name: "link_preview", kind: "message", T: ChatLinkPreviewDto },
227
+ { no: 20, name: "forwarded_from", kind: "scalar", T: 9 },
228
+ { no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
225
229
  ]);
226
230
  static fromBinary(bytes, options) {
227
231
  return new ChatMessageDto().fromBinary(bytes, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -86,6 +86,11 @@ message ChatMessageDto {
86
86
  // OpenGraph preview of the first link (staff messages only). Arrives
87
87
  // asynchronously after the send; history carries it inline.
88
88
  ChatLinkPreviewDto link_preview = 19;
89
+ // Original author when this message was forwarded. Label only: the client
90
+ // must not turn it into a link to a group the viewer may not be in.
91
+ string forwarded_from = 20;
92
+ // Name of the room it was forwarded from, shown beside the author.
93
+ string forwarded_from_group = 21;
89
94
  }
90
95
 
91
96
  message ChatLinkPreviewDto {