diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py index 5abc0be93..caeca3f4d 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py @@ -91,7 +91,7 @@ class Rpc: async def __aenter__(self): self.__enter__() - return AsyncRpc(self) + return self.get_async_rpc() async def __aexit__(self, _exc_type, _exc, _tb): self.__exit__(_exc_type, _exc, _tb)