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

View file

@ -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
})
);