Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
poezio
poezio
Commits
d790465d
Verified
Commit
d790465d
authored
Jul 09, 2014
by
mathieui
Browse files
Fix
#2520
(feedback on roster changes)
parent
dc5e3b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tabs/rostertab.py
View file @
d790465d
...
...
@@ -378,6 +378,8 @@ class RosterInfoTab(Tab):
contact
=
roster
[
jid
]
if
contact
:
contact
.
unauthorize
()
self
.
core
.
information
(
'Subscription to %s was revoked'
%
jid
,
'Roster'
)
def
command_add
(
self
,
args
):
"""
...
...
@@ -392,6 +394,7 @@ class RosterInfoTab(Tab):
return
self
.
core
.
information
(
'Already subscribed.'
,
'Roster'
)
roster
.
add
(
jid
)
roster
.
modified
()
self
.
core
.
information
(
'%s was added to the roster'
%
jid
,
'Roster'
)
def
command_name
(
self
,
arg
):
"""
...
...
@@ -720,6 +723,8 @@ class RosterInfoTab(Tab):
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
.
information
(
'%s is now authorized'
%
jid
,
'Roster'
)
def
refresh
(
self
):
if
self
.
need_resize
:
self
.
resize
()
...
...
louiz’
@louiz
mentioned in issue
#2549
·
Aug 21, 2018
mentioned in issue
#2549
mentioned in issue #2549
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment