Rename MatrixClient.send_markdown() to send_text
Because it deals with text command parsing too
This commit is contained in:
parent
662b60d7a8
commit
820cc68373
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user