rubjs 2.9.0 → 2.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubjs",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "main": "rubjs/index.js",
5
5
  "types": "rubjs/index.d.ts",
6
6
  "keywords": [
@@ -236,6 +236,7 @@ class Network {
236
236
  for (let messageData of update[updateType]) {
237
237
  if (!messageData)
238
238
  return;
239
+ messageData = Object.assign(Object.assign({}, messageData), { client_guid: this.client.userGuid });
239
240
  const isValid = filters.length === 0 ||
240
241
  filters.every((filter) => {
241
242
  if (typeof filter === "function")
@@ -120,6 +120,7 @@ interface MessageUpdate {
120
120
  object_guid: string;
121
121
  type: string;
122
122
  state: string;
123
+ client_guid: string;
123
124
  }
124
125
  interface ChatUpdates {
125
126
  object_guid: string;
@@ -9,6 +9,7 @@ declare class Message implements Types.DecoratorsTypes.MessageUpdate {
9
9
  object_guid: string;
10
10
  type: string;
11
11
  state: string;
12
+ client_guid: string;
12
13
  client: Client;
13
14
  originalType: string;
14
15
  constructor(client: Client, update: Types.DecoratorsTypes.MessageUpdate);
@@ -175,4 +175,4 @@ interface GetMessageShareUrl {
175
175
  share_url?: string;
176
176
  has_share_url: boolean;
177
177
  }
178
- export { Reaction, Message, Chat, ChatWithLastMessage, ChatWithPin, MessageUpdateBase, EditMessage, DeleteMessage, ForwardMessages, GetBannedGroupMembers, GetMessagesBase, GetMessagesInterval, GetMessagesUpdates, GetPollOptionVoters, GetPollStatus, SendMessageResult, SetPinMessage, RequestSendFile, GetMessageShareUrl };
178
+ export { Reaction, Message, Chat, ChatWithLastMessage, ChatWithPin, MessageUpdateBase, EditMessage, DeleteMessage, ForwardMessages, GetBannedGroupMembers, GetMessagesBase, GetMessagesInterval, GetMessagesUpdates, GetPollOptionVoters, GetPollStatus, SendMessageResult, SetPinMessage, RequestSendFile, GetMessageShareUrl, };