Rename MatrixClient.send_markdown() to send_text

Because it deals with text command parsing too
This commit is contained in:
miruka 2019-10-28 13:51:46 -04:00
parent 662b60d7a8
commit 820cc68373
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ class MatrixClient(nio.AsyncClient):
return {**self.invited_rooms, **self.rooms}
async def send_markdown(self, room_id: str, text: str) -> None:
async def send_text(self, room_id: str, text: str) -> None:
escape = False
if text.startswith("//") or text.startswith(r"\/"):
escape = True

View File

@ -169,7 +169,7 @@ Rectangle {
if (textArea.text === "") { return }
let args = [chatPage.roomId, toSend]
py.callClientCoro(writingUserId, "send_markdown", args)
py.callClientCoro(writingUserId, "send_text", args)
area.clear()
})