allow to execute commands even if there is no resource. XEP don't forbid that. fixes #3453
This commit is contained in:
parent
cf9945245a
commit
c7dbb136ac
|
@ -2232,14 +2232,8 @@ class RosterWindow:
|
||||||
else: # one resource
|
else: # one resource
|
||||||
start_chat_menuitem.connect('activate',
|
start_chat_menuitem.connect('activate',
|
||||||
self.on_open_chat_window, contact, account)
|
self.on_open_chat_window, contact, account)
|
||||||
# we cannot execute commands when the resource is unknown
|
execute_command_menuitem.connect('activate', self.on_execute_command,
|
||||||
# TODO: that's true only if the entity is a contact,
|
contact, account, contact.resource)
|
||||||
# TODO: we need to show this also for transports
|
|
||||||
if contact.resource:
|
|
||||||
execute_command_menuitem.connect('activate',
|
|
||||||
self.on_execute_command, contact, account, contact.resource)
|
|
||||||
else:
|
|
||||||
execute_command_menuitem.set_sensitive(False)
|
|
||||||
|
|
||||||
our_jid_other_resource = None
|
our_jid_other_resource = None
|
||||||
if our_jid:
|
if our_jid:
|
||||||
|
|
Loading…
Reference in New Issue