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:
Goffi 2015-11-08 14:44:33 +01:00
commit 31c9e0d06e

View file

@ -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))