plugins XE0166, XEP-0234, XEP-0260, XEP-0261: renamed session key managing other peer's jid to "peer_jid" instead of "to_jid"
This commit is contained in:
parent
1a5f1bd144
commit
31c9e0d06e
1 changed files with 19 additions and 19 deletions
|
|
@ -74,16 +74,16 @@ class XEP_0261(object):
|
|||
elif action == self._j.A_SESSION_INITIATE:
|
||||
transport_data['sid'] = transport_elt['sid']
|
||||
elif action in (self._j.A_START, self._j.A_PREPARE_RESPONDER):
|
||||
to_jid = session['to_jid']
|
||||
peer_jid = session['peer_jid']
|
||||
sid = transport_data['sid']
|
||||
file_obj = content_data['file_obj']
|
||||
args = [session, content_name, profile]
|
||||
if action == self._j.A_START:
|
||||
block_size = transport_data['block_size']
|
||||
d = self._ibb.startStream(file_obj, to_jid, sid, block_size, profile)
|
||||
d = self._ibb.startStream(file_obj, peer_jid, sid, block_size, profile)
|
||||
d.addErrback(self._streamEb, *args)
|
||||
else:
|
||||
d = self._ibb.createSession(file_obj, to_jid, sid, profile)
|
||||
d = self._ibb.createSession(file_obj, peer_jid, sid, profile)
|
||||
d.addCallbacks(self._streamCb, self._streamEb, args, None, args)
|
||||
else:
|
||||
log.warning(u"FIXME: unmanaged action {}".format(action))
|
||||
|
|
|
|||
Loading…
Reference in a new issue