multi-profile/subscription misc fixes

This commit is contained in:
Goffi 2010-05-13 16:27:48 +09:30
commit 6cfa6a1413

View file

@ -281,9 +281,9 @@ class QuickApp():
# this is a subscriptionn request, we have to ask for user confirmation
answer = self.showDialog(_("The contact %s wants to subscribe to your presence.\nDo you accept ?") % entity.short, _('Subscription confirmation'), 'yes/no')
if answer:
self.bridge.subscription("subscribed", entity.short)
self.bridge.subscription("subscribed", entity.short, profile_key = profile)
else:
self.bridge.subscribed("unsubscribed", entity.short)
self.bridge.subscription("unsubscribed", entity.short, profile_key = profile)
def showDialog(self, message, title, type="info"):
raise NotImplementedError