Avoids trying to send a blank chat message to VK

This commit is contained in:
Manuel Cortez 2018-12-11 12:17:08 -06:00
parent 5f010b68af
commit 65e253a538

View File

@ -709,7 +709,9 @@ class chatBuffer(baseBuffer):
def send_chat_to_user(self, *args, **kwargs): def send_chat_to_user(self, *args, **kwargs):
text = self.tab.text.GetValue() 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) call_threaded(self._send_message, text=text)
def _send_message(self, text): def _send_message(self, text):