Make participants lowercase (#55)

This commit is contained in:
Kasherpete 2023-12-01 14:32:36 -06:00 committed by GitHub
parent 627cedf7a8
commit e2102d006e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -496,6 +496,7 @@ class iMessageUser:
bundled_payloads = [] bundled_payloads = []
for participant in message.participants: for participant in message.participants:
participant = participant.lower()
for push_token in self.USER_CACHE[participant]: for push_token in self.USER_CACHE[participant]:
if push_token == self.connection.token: if push_token == self.connection.token:
continue # Don't send to ourselves continue # Don't send to ourselves