diff src/server/server.py @ 623:4f7550a083b4 frontends_multi_profiles

server and browser sides: fixes bad call to "subscription" bridge method
author souliane <souliane@mailoo.org>
date Sun, 22 Feb 2015 21:42:14 +0100
parents deddd1cd8aa5
children 2df91d0308ac
line wrap: on
line diff
--- a/src/server/server.py	Fri Feb 20 22:05:14 2015 +0100
+++ b/src/server/server.py	Sun Feb 22 21:42:14 2015 +0100
@@ -212,13 +212,11 @@
         profile = ISATSession(self.session).profile
         self.sat_host.bridge.updateContact(entity, name, groups, profile)
 
-    def jsonrpc_subscription(self, sub_type, entity, name, groups):
+    def jsonrpc_subscription(self, sub_type, entity):
         """Confirm (or infirm) subscription,
         and setup user roster in case of subscription"""
         profile = ISATSession(self.session).profile
         self.sat_host.bridge.subscription(sub_type, entity, profile)
-        if sub_type == 'subscribed':
-            self.sat_host.bridge.updateContact(entity, name, groups, profile)
 
     def jsonrpc_getWaitingSub(self):
         """Return list of room already joined by user"""