From aa26876a4ba99cc615e94b35bb6a25d3b2137f35 Mon Sep 17 00:00:00 2001 From: Bauguelson <143646733+Bauguelson@users.noreply.github.com> Date: Sun, 28 Apr 2024 14:10:54 +0200 Subject: [PATCH] Update Client.js (#2813) Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.js b/src/Client.js index c0c1db0..f2ad706 100644 --- a/src/Client.js +++ b/src/Client.js @@ -396,7 +396,7 @@ class Client extends EventEmitter { * @param {GroupNotification} notification GroupNotification with more information about the action */ this.emit(Events.GROUP_ADMIN_CHANGED, notification); - } else if (msg.subtype === 'created_membership_requests') { + } else if (msg.subtype === 'membership_approval_request') { /** * Emitted when some user requested to join the group * that has the membership approval mode turned on