From f34aa58626980e199b9e68532661c3ed0487771a Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 16 Oct 2019 03:25:44 +0200 Subject: Fix slash commands --- main/src/ui/chat_input/view.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui/chat_input') diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala index 24297e6a..960e4e14 100644 --- a/main/src/ui/chat_input/view.vala +++ b/main/src/ui/chat_input/view.vala @@ -10,7 +10,7 @@ namespace Dino.Ui.ChatInput { [GtkTemplate (ui = "/im/dino/Dino/chat_input.ui")] public class View : Box { - public signal void send_text(string text); + public signal void send_text(); public string text { owned get { return text_input.buffer.text; } @@ -138,7 +138,7 @@ public class View : Box { if ((event.state & ModifierType.SHIFT_MASK) > 0) { text_input.buffer.insert_at_cursor("\n", 1); } else if (this.text != "") { - send_text(this.text); + send_text(); edit_history.reset_history(); } return true; -- cgit v1.2.3-54-g00ecf