From 6c19fc85b9ec5702a12ea895e292600aa322ae99 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 8 Oct 2022 20:03:01 +0200 Subject: [PATCH] Don't try sending empty messages --- sbapp/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbapp/main.py b/sbapp/main.py index a753bc5..cd63d12 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -506,6 +506,9 @@ class SidebandApp(MDApp): self.open_conversations(direction="right") def message_send_action(self, sender=None): + if self.root.ids.message_text.text == "": + return + def cb(dt): self.message_send_dispatch(sender) Clock.schedule_once(cb, 0.20)