send password of the room when we invite a contact in it. Fixes #8197
This commit is contained in:
parent
7f66f65ed7
commit
bc880bd892
|
@ -2982,6 +2982,9 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
attrs['reason'] = reason
|
attrs['reason'] = reason
|
||||||
if continue_tag:
|
if continue_tag:
|
||||||
attrs['continue'] = 'true'
|
attrs['continue'] = 'true'
|
||||||
|
password = gajim.gc_passwords.get(room, '')
|
||||||
|
if password:
|
||||||
|
attrs['password'] = password
|
||||||
c = message.addChild(name='x', attrs=attrs,
|
c = message.addChild(name='x', attrs=attrs,
|
||||||
namespace=nbxmpp.NS_CONFERENCE)
|
namespace=nbxmpp.NS_CONFERENCE)
|
||||||
self.connection.send(message)
|
self.connection.send(message)
|
||||||
|
|
Loading…
Reference in New Issue