Add JSON-RPC API can_send()

This commit is contained in:
link2xt
2023-04-14 20:10:18 +00:00
parent b369a30544
commit 28a13e98a6
4 changed files with 16 additions and 1 deletions

View File

@@ -147,7 +147,9 @@ async def test_chat(acfactory) -> None:
assert alice_chat_bob != bob_chat_alice
assert repr(alice_chat_bob)
await alice_chat_bob.delete()
assert not await bob_chat_alice.can_send()
await bob_chat_alice.accept()
assert await bob_chat_alice.can_send()
await bob_chat_alice.block()
bob_chat_alice = await snapshot.sender.create_chat()
await bob_chat_alice.mute()