diff src/plugins/plugin_xep_0261.py @ 1567:268fda4236ca

plugins XE0166, XEP-0234, XEP-0260, XEP-0261: renamed session key managing other peer's jid to "peer_jid" instead of "to_jid"
author Goffi <goffi@goffi.org>
date Sun, 08 Nov 2015 14:44:33 +0100
parents cbfbe028d099
children c668081eba1c
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0261.py	Sun Nov 08 14:44:30 2015 +0100
+++ b/src/plugins/plugin_xep_0261.py	Sun Nov 08 14:44:33 2015 +0100
@@ -74,16 +74,16 @@
         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))