Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
713d5233
Commit
713d5233
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong var name. fixes TBs
parent
9f417b73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/contacts.py
+4
-4
4 additions, 4 deletions
src/common/contacts.py
with
4 additions
and
4 deletions
src/common/contacts.py
+
4
−
4
View file @
713d5233
...
...
@@ -71,18 +71,18 @@ class Contact:
'''
if roster should not be visible in roster
'''
# JEP-0162
hide
=
True
if
contact
.
sub
in
(
'
both
'
,
'
to
'
,
'
from
'
):
if
self
.
sub
in
(
'
both
'
,
'
to
'
,
'
from
'
):
hide
=
False
elif
contact
.
ask
==
'
subscribe
'
:
elif
self
.
ask
==
'
subscribe
'
:
hide
=
False
elif
contact
.
name
or
len
(
contact
.
groups
):
elif
self
.
name
or
len
(
self
.
groups
):
hide
=
False
return
hide
def
is_observer
(
self
):
# XEP-0162: http://www.xmpp.org/extensions/xep-0162.html
is_observer
=
False
if
is_hidden_
in
_roster
()
and
contact
.
sub
==
'
from
'
:
if
self
.
is_hidden_
from
_roster
()
and
self
.
sub
==
'
from
'
:
is_observer
=
True
return
is_observer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment