[kalyan] don't show error when we press enter in chat while offline if enter is just for a line break. Fixes #3852
This commit is contained in:
parent
1078112473
commit
7bc8f16012
|
@ -544,7 +544,8 @@ class ChatControlBase(MessageControl):
|
||||||
else: # ENTER
|
else: # ENTER
|
||||||
send_message = True
|
send_message = True
|
||||||
|
|
||||||
if gajim.connections[self.account].connected < 2: # we are not connected
|
if gajim.connections[self.account].connected < 2 and send_message:
|
||||||
|
# we are not connected
|
||||||
dialogs.ErrorDialog(_('A connection is not available'),
|
dialogs.ErrorDialog(_('A connection is not available'),
|
||||||
_('Your message can not be sent until you are connected.'))
|
_('Your message can not be sent until you are connected.'))
|
||||||
send_message = False
|
send_message = False
|
||||||
|
|
Loading…
Reference in New Issue