Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
45c9f3a7
Commit
45c9f3a7
authored
Jul 13, 2015
by
Yann Leboulanger
Browse files
add invities to member list when converting chat to muc. Fixes #8098
parent
48ab77e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/groupchat_control.py
View file @
45c9f3a7
...
...
@@ -1613,7 +1613,7 @@ def _nec_gc_presence_received(self, obj):
gajim
.
automatic_rooms
[
self
.
account
][
self
.
room_jid
][
'invities'
]:
if
self
.
room_jid
not
in
gajim
.
interface
.
instances
[
self
.
account
][
'gc_config'
]:
if
obj
.
role
==
'owner'
:
if
obj
.
affiliation
==
'owner'
:
# We need to configure the room if it's a new one.
# We cannot know it's a new one. Status 201 is not
# sent by all servers.
...
...
src/gui_interface.py
View file @
45c9f3a7
...
...
@@ -587,6 +587,10 @@ def handle_event_gc_config(self, obj):
elif
f
.
var
==
'public_list'
:
f
.
value
=
False
obj
.
conn
.
send_gc_config
(
obj
.
jid
,
obj
.
dataform
.
get_purged
())
user_list
=
{}
for
jid
in
gajim
.
automatic_rooms
[
account
][
obj
.
jid
][
'invities'
]:
user_list
[
jid
]
=
{
'affiliation'
:
'member'
}
obj
.
conn
.
send_gc_affiliation_list
(
obj
.
jid
,
user_list
)
else
:
# use default configuration
obj
.
conn
.
send_gc_config
(
obj
.
jid
,
obj
.
form_node
)
...
...
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