fix event.user_added returning False

In version 1.24.0 when adding a True user, this change tries to fix the event does not return this.
This commit is contained in:
Luiz Antonio Lazoti 2022-05-14 15:58:11 -03:00 committed by GitHub
parent 2357116f01
commit 65b8727dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ class ChatAction(EventBuilder):
if added_by is True or from_approval is True:
self.user_joined = True
elif added_by:
elif added_by is None:
self.user_added = True
self._added_by = added_by
self.user_approved = from_approval