diff --git a/status_sdk/group_chat.py b/status_sdk/group_chat.py index 3f20cf0..88b9e08 100644 --- a/status_sdk/group_chat.py +++ b/status_sdk/group_chat.py @@ -137,6 +137,10 @@ class GroupChat: params = [self.id, public_keys] response: dict = self.__account._call_rpc("messaging", "addMembersToGroupChat", params) + error = response.get("error", {}) + if error: + raise exceptions.GroupChatMembersError(response["error"]["message"]) + self.__action_log(public_keys, "add") return self