Skip to content
Snippets Groups Projects
Commit aa3a8c7f authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

hide invite contacts buttons in zeroconf chat controls. Fixes #7188

parent 651a4335
No related branches found
No related tags found
No related merge requests found
......@@ -1744,10 +1744,14 @@ class ChatControl(ChatControlBase):
"him or her a file."))
# Convert to GC
if self.contact.supports(NS_MUC):
self._convert_to_gc_button.set_sensitive(True)
if gajim.config.get_per('accounts', self.account, 'is_zeroconf'):
self._convert_to_gc_button.set_no_show_all(True)
self._convert_to_gc_button.hide()
else:
self._convert_to_gc_button.set_sensitive(False)
if self.contact.supports(NS_MUC):
self._convert_to_gc_button.set_sensitive(True)
else:
self._convert_to_gc_button.set_sensitive(False)
# Information
if gajim.account_is_disconnected(self.account):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment