Fix FriendInvites (#874)

This commit is contained in:
Dziurwa 2023-04-12 02:33:05 +02:00 committed by GitHub
parent 358eb6ad8e
commit edc96387f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,12 +47,16 @@ export default definePlugin({
body: { body: {
modified_contacts: { modified_contacts: {
[random]: [1, "", ""] [random]: [1, "", ""]
} },
phone_contact_methods_count: 1
} }
}).then(res => }).then(res =>
FriendInvites.createFriendInvite({ FriendInvites.createFriendInvite({
code: res.body.invite_suggestions[0][3], 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
}) })
); );