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
package/rubjs/network/index.js
CHANGED
@@ -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")
|
package/rubjs/types/message.d.ts
CHANGED
@@ -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, };
|