From b76741fb54547c95a9f02b6149e33f35366e020d Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 21 Dec 2024 05:23:09 +0100 Subject: [PATCH] SignalAPI: do not remove the bot itself in update_group_members() --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 356b7ab..50f4e58 100644 --- a/main.py +++ b/main.py @@ -114,6 +114,9 @@ class SignalAPI: if member not in other_members: members_to_remove.append(member) + if self.number in members_to_remove: + members_to_remove.remove(self.number) + if len(members_to_add) > 0: add_result = self.add_group_members(group_id, members_to_add) if add_result.is_err():