From a5f2ee2d1db6a532fa9a1636924a96f836d7514d Mon Sep 17 00:00:00 2001 From: Mehmet Seven Date: Wed, 4 Aug 2021 16:08:51 +0300 Subject: [PATCH 1/3] Fixes IgCookieNotFoundError: Cookie sessionid not found error after logout (#57) --- src/structures/Client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structures/Client.js b/src/structures/Client.js index 9a1826d..331ef5f 100644 --- a/src/structures/Client.js +++ b/src/structures/Client.js @@ -341,7 +341,9 @@ class Client extends EventEmitter { * @returns {Promise} */ async logout () { - await this.ig.account.logout() + await this.ig.account.logout(); + await this.ig.realtime.disconnect(); + await this.ig.fbns.disconnect(); } /** From de55687ffa9a045382b7c349b8c2225d5c2fb445 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Wed, 18 Aug 2021 17:59:31 +0200 Subject: [PATCH 2/3] :bug: Fix Cannot read property 'user' of undefined --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 08bde81..da3bb6c 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -81,7 +81,7 @@ class Message { } } else { this.storyShareData = { - author: this.client._patchOrCreateUser(data.story_share.media.user.pk, data.story_share.media.user), + author: this.client._patchOrCreateUser(data.story_share.media?.user.pk, data.story_share.media?.user), sourceURL: data.story_share.media.image_versions2.candidates[0].url } } From e743f53c0a7913cbd589ed7d7d4e80a7c890c37d Mon Sep 17 00:00:00 2001 From: Mia Date: Wed, 25 Aug 2021 14:11:37 +0200 Subject: [PATCH 3/3] Notify user on .reply() (#68) Notify user on .reply() --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index da3bb6c..61357af 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -211,7 +211,7 @@ class Message { * @returns {Promise} */ reply (content) { - return this.chat.sendMessage(`${this.client.options.disableReplyPrefix ? '' : `${this.author.username}, `}${content}`) + return this.chat.sendMessage(`${this.client.options.disableReplyPrefix ? '' : `@${this.author.username}, `}${content}`) } toString () {