api(deltachat-rpc-client): add ACFactory.get_accepted_chat()

This commit is contained in:
link2xt
2024-04-08 14:14:54 +00:00
parent 0b73f9cebd
commit 00f2585d8c

View File

@@ -4,7 +4,7 @@ from typing import AsyncGenerator, List, Optional
import pytest
from . import Account, AttrDict, Bot, Client, DeltaChat, EventType, Message
from . import Account, AttrDict, Bot, Chat, Client, DeltaChat, EventType, Message
from ._utils import futuremethod
from .rpc import Rpc
@@ -71,6 +71,10 @@ class ACFactory:
ac_clone.configure()
return ac_clone
def get_accepted_chat(self, ac1: Account, ac2: Account) -> Chat:
ac2.create_chat(ac1)
return ac1.create_chat(ac2)
def send_message(
self,
to_account: Account,