From 65e253a5388d84474ece13b6a9348b87f3e53c60 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 11 Dec 2018 12:17:08 -0600 Subject: [PATCH] Avoids trying to send a blank chat message to VK --- src/controller/buffers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index 4b523ce..5838292 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -709,7 +709,9 @@ class chatBuffer(baseBuffer): def send_chat_to_user(self, *args, **kwargs): text = self.tab.text.GetValue() -# if text == "" and not hasattr(self, "attachments_to_be_sent"): return + if text == "" and not hasattr(self, "attachments_to_be_sent"): + wx.Bell() + return call_threaded(self._send_message, text=text) def _send_message(self, text):