add invities to member list when converting chat to muc. Fixes #8098
This commit is contained in:
parent
86229e52c4
commit
731cea3b66
|
@ -1614,7 +1614,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
gajim.automatic_rooms[self.account][self.room_jid]['invities']:
|
gajim.automatic_rooms[self.account][self.room_jid]['invities']:
|
||||||
if self.room_jid not in gajim.interface.instances[
|
if self.room_jid not in gajim.interface.instances[
|
||||||
self.account]['gc_config']:
|
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 need to configure the room if it's a new one.
|
||||||
# We cannot know it's a new one. Status 201 is not
|
# We cannot know it's a new one. Status 201 is not
|
||||||
# sent by all servers.
|
# sent by all servers.
|
||||||
|
|
|
@ -588,6 +588,10 @@ class Interface:
|
||||||
elif f.var == 'public_list':
|
elif f.var == 'public_list':
|
||||||
f.value = False
|
f.value = False
|
||||||
obj.conn.send_gc_config(obj.jid, obj.dataform.get_purged())
|
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:
|
else:
|
||||||
# use default configuration
|
# use default configuration
|
||||||
obj.conn.send_gc_config(obj.jid, obj.form_node)
|
obj.conn.send_gc_config(obj.jid, obj.form_node)
|
||||||
|
|
Loading…
Reference in New Issue