Skip to content
Snippets Groups Projects
Commit 8b90cc90 authored by Nico's avatar Nico
Browse files

Don't allow sending empty messages

Fixes #67.
parent 85bbec94
No related branches found
No related tags found
1 merge request!71Don't allow sending empty messages
Pipeline #4835 passed
......@@ -141,6 +141,8 @@ class MainWindowContainer(Container):
self.chat_entry.grab_focus()
def _on_chat_entry_activate(self, widget):
if len(widget.get_text()) == 0:
return
self._current_private_chat_widget.send_message(widget)
self._refresh_contacts()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment