diff src/browser/libervia_main.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 ac5881d683d3
children 9092e624bb27
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Fri Feb 20 22:05:14 2015 +0100
+++ b/src/browser/libervia_main.py	Sun Feb 22 21:42:14 2015 +0100
@@ -815,7 +815,8 @@
             msg = HTML('The contact <b>%s</b> want to add you in his/her contact list, do you accept ?' % html_tools.html_sanitize(entity))
 
             def ok_cb(ignore):
-                self.bridge.call('subscription', None, "subscribed", entity, '', _dialog.getSelectedGroups())
+                self.bridge.call('subscription', None, "subscribed", entity)
+                self.bridge.updateContact(entity, '', _dialog.getSelectedGroups())
 
             def cancel_cb(ignore):
                 self.bridge.call('subscription', None, "unsubscribed", entity, '', '')