Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
gajim
gajim-plugins
Commits
455c7968
Commit
455c7968
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
[whiteboard] Adapt updating caps
parent
90b0134f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
whiteboard/plugin.py
+10
-10
10 additions, 10 deletions
whiteboard/plugin.py
with
10 additions
and
10 deletions
whiteboard/plugin.py
+
10
−
10
View file @
455c7968
...
...
@@ -82,27 +82,27 @@ class WhiteboardPlugin(GajimPlugin):
self
.
announce_caps
=
True
@log_calls
(
'
WhiteboardPlugin
'
)
def
_update_caps
(
self
,
account
):
def
_update_caps
(
self
,
_
account
,
features
):
if
not
self
.
announce_caps
:
return
if
NS_JINGLE_SXE
not
in
app
.
gajim_optional_features
[
account
]:
app
.
gajim_optional_features
[
account
].
append
(
NS_JINGLE_SXE
)
if
NS_SXE
not
in
app
.
gajim_optional_features
[
account
]:
app
.
gajim_optional_features
[
account
].
append
(
NS_SXE
)
features
.
append
(
NS_JINGLE_SXE
)
features
.
append
(
NS_SXE
)
@log_calls
(
'
WhiteboardPlugin
'
)
def
activate
(
self
):
if
not
HAS_GOOCANVAS
:
raise
GajimPluginException
(
'
python-pygoocanvas is missing!
'
)
for
account
in
app
.
caps_hash
:
if
app
.
caps_hash
[
account
]
!=
''
:
self
.
announce_caps
=
True
helpers
.
update_optional_features
(
account
)
self
.
announce_caps
=
True
for
con
in
app
.
connections
.
values
():
con
.
get_module
(
'
Caps
'
).
update_caps
(
)
@log_calls
(
'
WhiteboardPlugin
'
)
def
deactivate
(
self
):
self
.
announce_caps
=
False
helpers
.
update_optional_features
()
for
con
in
app
.
connections
.
values
():
con
.
get_module
(
'
Caps
'
).
update_caps
()
@log_calls
(
'
WhiteboardPlugin
'
)
def
connect_with_chat_control
(
self
,
control
):
...
...
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