Skip to content
Snippets Groups Projects
Commit 1462b4a2 authored by nkour's avatar nkour
Browse files

we were checking for @ unless we had /echo but it is also valid to contact...

we were checking for @ unless we had /echo but it is also valid to contact jabber.org so it is time we do not check at all if jid has @
parent 9bf48194
No related branches found
No related tags found
No related merge requests found
......@@ -727,12 +727,6 @@ class NewMessageDialog:
_('Please make sure you are connected with "%s".' % self.account)
).get_response()
return
if jid.find('@') == -1 and not jid.endswith('/echo'):
# if no @ was given and jid is not server.tld/echo
ErrorDialog(_('Invalid contact ID'),
_('Contact ID must be of the form "username@servername".')).get_response()
return
gajim.interface.roster.new_chat_from_jid(self.account, jid)
......@@ -1072,12 +1066,6 @@ class SingleMessageWindow:
message)
return
if to_whom_jid.find('@') == -1 and not to_whom_jid.endswith('/echo'):
# if no @ was given and jid is not server.tld/echo
ErrorDialog(_('Invalid contact ID'),
_('Contact ID must be of the form "username@servername".')).get_response()
return
# FIXME: allow GPG message some day
gajim.connections[self.account].send_message(to_whom_jid, message,
keyID = None, type = 'normal', subject=subject)
......
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