From edc96387f5988a443d8bb58fa49ebbc01d9b38b3 Mon Sep 17 00:00:00 2001 From: Dziurwa <54191536+Dziurwa14@users.noreply.github.com> Date: Wed, 12 Apr 2023 02:33:05 +0200 Subject: [PATCH] Fix FriendInvites (#874) --- src/plugins/friendInvites.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/friendInvites.ts b/src/plugins/friendInvites.ts index 970994a..fc59efa 100644 --- a/src/plugins/friendInvites.ts +++ b/src/plugins/friendInvites.ts @@ -47,12 +47,16 @@ export default definePlugin({ body: { modified_contacts: { [random]: [1, "", ""] - } + }, + phone_contact_methods_count: 1 } }).then(res => FriendInvites.createFriendInvite({ code: res.body.invite_suggestions[0][3], - recipient_phone_number_or_email: random + recipient_phone_number_or_email: random, + contact_visibility: 1, + filter_visibilities: [], + filtered_invite_suggestions_index: 1 }) );