Hide protocol combobox when adding contacts if only XMPP is available

This commit is contained in:
Yann Leboulanger 2018-04-04 14:46:46 +02:00
parent 8e144e46f8
commit 17ae4e4ccc
1 changed files with 3 additions and 0 deletions

View File

@ -1017,6 +1017,9 @@ class AddNewContactWindow:
self.account_combobox.set_model(liststore)
self.account_combobox.set_active(0)
if len(self.agents) == 1:
self.protocol_hbox.hide()
if self.account:
message_buffer = self.message_textview.get_buffer()
msg = helpers.from_one_line(helpers.get_subscription_request_msg(