From 9de9f75a161c8d3041a801d7fa000596800bd116 Mon Sep 17 00:00:00 2001 From: JJTech Date: Wed, 1 Nov 2023 22:05:33 -0400 Subject: [PATCH] Update demo.py --- demo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demo.py b/demo.py index 2699b50..7762505 100644 --- a/demo.py +++ b/demo.py @@ -114,8 +114,7 @@ async def main(args: argparse.Namespace): expiration = expiration.replace(tzinfo=datetime.timezone.utc) logging.info(expire_msg(expiration)) - # This is an Apple ID user, so we can use it to send the notification iMessage (if enabled) - if "U:" in str(user.user_id): + else: email_user = user for n in range(len(user.handles)): # HACK: Just pick the first email address they have to avoid picking the linked phone number