Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
219
Issues
219
List
Boards
Labels
Milestones
Merge Requests
26
Merge Requests
26
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
02915163
Commit
02915163
authored
May 18, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove getRoster() helper method
parent
2e50ac52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
gajim/common/connection.py
gajim/common/connection.py
+0
-3
gajim/common/modules/gateway.py
gajim/common/modules/gateway.py
+1
-1
gajim/common/modules/presence.py
gajim/common/modules/presence.py
+3
-3
No files found.
gajim/common/connection.py
View file @
02915163
...
...
@@ -1638,9 +1638,6 @@ class Connection(CommonConnection, ConnectionHandlers):
self
.
connection
=
con
nbxmpp
.
features
.
getRegInfo
(
con
,
self
.
_hostname
)
def
getRoster
(
self
):
return
self
.
get_module
(
'Roster'
)
def
send_agent_status
(
self
,
agent
,
ptype
):
if
not
app
.
account_is_connected
(
self
.
name
):
return
...
...
gajim/common/modules/gateway.py
View file @
02915163
...
...
@@ -33,7 +33,7 @@ class Gateway(BaseModule):
self
.
_con
.
connection
.
SendAndCallForResponse
(
iq
,
self
.
_on_unsubscribe_result
)
self
.
_con
.
get
Roster
(
)
.
del_item
(
agent
)
self
.
_con
.
get
_module
(
'Roster'
)
.
del_item
(
agent
)
def
_on_unsubscribe_result
(
self
,
stanza
):
if
not
nbxmpp
.
isResultNode
(
stanza
):
...
...
gajim/common/modules/presence.py
View file @
02915163
...
...
@@ -305,15 +305,15 @@ class Presence(BaseModule):
if
not
app
.
account_is_connected
(
self
.
_account
):
return
if
remove_auth
:
self
.
_con
.
get
Roster
(
)
.
del_item
(
jid
)
self
.
_con
.
get
_module
(
'Roster'
)
.
del_item
(
jid
)
jid_list
=
app
.
config
.
get_per
(
'contacts'
)
for
j
in
jid_list
:
if
j
.
startswith
(
jid
):
app
.
config
.
del_per
(
'contacts'
,
j
)
else
:
self
.
_log
.
info
(
'Unsubscribe from
%
s'
,
jid
)
self
.
_con
.
get
Roster
(
)
.
unsubscribe
(
jid
)
self
.
_con
.
get
Roster
(
)
.
set_item
(
jid
)
self
.
_con
.
get
_module
(
'Roster'
)
.
unsubscribe
(
jid
)
self
.
_con
.
get
_module
(
'Roster'
)
.
set_item
(
jid
)
def
subscribe
(
self
,
jid
,
msg
=
None
,
name
=
''
,
groups
=
None
,
auto_auth
=
False
):
if
not
app
.
account_is_connected
(
self
.
_account
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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