Skip recipient if not a string (#5)

This commit is contained in:
jbirddog 2023-05-15 12:30:47 -04:00 committed by GitHub
parent 5b77d28df8
commit df79d5f339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ class SendMessage:
responses = []
all_calls_returned_200 = True
for rec in self.recipient:
if not isinstance(rec, str):
continue
# we also tried wakuext_sendContactRequest before wakuext_addContact.
# wakuext_sendContactRequest also took a third parameter after the rec parameter for the message that would appear
# alongside the contact request. But the message also appeared in your messages foreever and ever, which was not