Fix #2520 (feedback on roster changes)
This commit is contained in:
parent
dc5e3b33f7
commit
d790465d6d
1 changed files with 5 additions and 0 deletions
|
@ -378,6 +378,8 @@ class RosterInfoTab(Tab):
|
||||||
contact = roster[jid]
|
contact = roster[jid]
|
||||||
if contact:
|
if contact:
|
||||||
contact.unauthorize()
|
contact.unauthorize()
|
||||||
|
self.core.information('Subscription to %s was revoked' % jid,
|
||||||
|
'Roster')
|
||||||
|
|
||||||
def command_add(self, args):
|
def command_add(self, args):
|
||||||
"""
|
"""
|
||||||
|
@ -392,6 +394,7 @@ class RosterInfoTab(Tab):
|
||||||
return self.core.information('Already subscribed.', 'Roster')
|
return self.core.information('Already subscribed.', 'Roster')
|
||||||
roster.add(jid)
|
roster.add(jid)
|
||||||
roster.modified()
|
roster.modified()
|
||||||
|
self.core.information('%s was added to the roster' % jid, 'Roster')
|
||||||
|
|
||||||
def command_name(self, arg):
|
def command_name(self, arg):
|
||||||
"""
|
"""
|
||||||
|
@ -720,6 +723,8 @@ class RosterInfoTab(Tab):
|
||||||
if contact.subscription in ('from', 'none') and not contact.pending_out:
|
if contact.subscription in ('from', 'none') and not contact.pending_out:
|
||||||
self.core.xmpp.send_presence(pto=jid, ptype='subscribe', pnick=self.core.own_nick)
|
self.core.xmpp.send_presence(pto=jid, ptype='subscribe', pnick=self.core.own_nick)
|
||||||
|
|
||||||
|
self.core.information('%s is now authorized' % jid, 'Roster')
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
if self.need_resize:
|
if self.need_resize:
|
||||||
self.resize()
|
self.resize()
|
||||||
|
|
Loading…
Reference in a new issue