diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/account.py b/deltachat-rpc-client/src/deltachat_rpc_client/account.py index 55101e11e..5e78c7a6e 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/account.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/account.py @@ -61,7 +61,7 @@ class Account: async def secure_join(self, qr: str) -> Chat: chat_id = await self.rpc.secure_join(self.account_id, qr) - return Chat(self.rpc, self.account_id, self.chat_id) + return Chat(self.rpc, self.account_id, chat_id) async def get_fresh_messages(self): """Return the list of fresh messages, newest messages first. diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py index 6600bb8bc..99d616862 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py @@ -29,5 +29,5 @@ class Chat: async def leave(self): await self.rpc.leave_group(self.account_id, self.chat_id) - async def get_fresh_message_count() -> int: - await get_fresh_msg_cnt(self.account_id, self.chat_id) + async def get_fresh_message_count(self) -> int: + return await self.rpc.get_fresh_msg_cnt(self.account_id, self.chat_id)