mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-23 15:00:39 -04:00
Don't try sending empty messages
This commit is contained in:
parent
c5ad94b2d3
commit
6c19fc85b9
1 changed files with 3 additions and 0 deletions
|
@ -506,6 +506,9 @@ class SidebandApp(MDApp):
|
||||||
self.open_conversations(direction="right")
|
self.open_conversations(direction="right")
|
||||||
|
|
||||||
def message_send_action(self, sender=None):
|
def message_send_action(self, sender=None):
|
||||||
|
if self.root.ids.message_text.text == "":
|
||||||
|
return
|
||||||
|
|
||||||
def cb(dt):
|
def cb(dt):
|
||||||
self.message_send_dispatch(sender)
|
self.message_send_dispatch(sender)
|
||||||
Clock.schedule_once(cb, 0.20)
|
Clock.schedule_once(cb, 0.20)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue