From cecaa292ba1ee559380811809e3f36a851a37278 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 16 Nov 2020 15:21:06 -0500 Subject: [PATCH] feat: enable putting text after the shrug or tableflip --- ui/shared/status/StatusChatInput.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/shared/status/StatusChatInput.qml b/ui/shared/status/StatusChatInput.qml index 34c3d781b2..4eef874235 100644 --- a/ui/shared/status/StatusChatInput.qml +++ b/ui/shared/status/StatusChatInput.qml @@ -69,11 +69,11 @@ Rectangle { } function interpretMessage(msg) { - if (msg === "/shrug") { - return "¯\\\\\\_(ツ)\\_/¯" + if (msg.startsWith("/shrug")) { + return msg.replace("/shrug", "") + " ¯\\\\\\_(ツ)\\_/¯" } - if (msg === "/tableflip") { - return "(╯°□°)╯︵ ┻━┻" + if (msg.startsWith("/tableflip")) { + return msg.replace("/tableflip", "") + " (╯°□°)╯︵ ┻━┻" } return msg