Avoids trying to send a blank chat message to VK
This commit is contained in:
parent
5f010b68af
commit
65e253a538
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user