tools: renamed tools.jid.JID attribute "short" to "bare"
This commit is contained in:
parent
a154d9acbb
commit
36cea6fc91
1 changed files with 94 additions and 94 deletions
|
|
@ -190,7 +190,7 @@ class Chat(urwid.WidgetWrap, QuickChat):
|
|||
#We ignore click on our own nick
|
||||
return
|
||||
#we have a click on a nick, we add the private conversation to the contact_list
|
||||
full_jid = JID("%s/%s" % (self.target.short, nick))
|
||||
full_jid = JID("%s/%s" % (self.target.bare, nick))
|
||||
new_jid = escapePrivate(full_jid)
|
||||
if new_jid not in self.host.contact_list:
|
||||
self.host.contact_list.add(new_jid)
|
||||
|
|
@ -340,9 +340,9 @@ class Chat(urwid.WidgetWrap, QuickChat):
|
|||
def onFileSelected(self, filepath):
|
||||
self.host.removePopUp()
|
||||
#FIXME: check last_resource: what if self.target.resource exists ?
|
||||
last_resource = self.host.bridge.getLastResource(unicode(self.target.short), self.host.profile)
|
||||
last_resource = self.host.bridge.getLastResource(unicode(self.target.bare), self.host.profile)
|
||||
if last_resource:
|
||||
full_jid = JID("%s/%s" % (self.target.short, last_resource))
|
||||
full_jid = JID("%s/%s" % (self.target.bare, last_resource))
|
||||
else:
|
||||
full_jid = self.target
|
||||
progress_id = self.host.bridge.sendFile(full_jid, filepath, {}, self.host.profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue