From 820cc68373d78cd3bdaeabfbe5e21ad2d1527829 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 28 Oct 2019 13:51:46 -0400 Subject: [PATCH] Rename MatrixClient.send_markdown() to send_text Because it deals with text command parsing too --- src/python/matrix_client.py | 2 +- src/qml/Chat/Composer.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index ac8e312f..e6a14d5d 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -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 diff --git a/src/qml/Chat/Composer.qml b/src/qml/Chat/Composer.qml index 902836d8..a762a5dc 100644 --- a/src/qml/Chat/Composer.qml +++ b/src/qml/Chat/Composer.qml @@ -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() })