chat2muc: See #2095

Remove ancient menuitem.
Do not allow to invite transports and groupchats.
Include contacts from all accounts.
This commit is contained in:
Stephan Erb 2007-08-22 00:50:48 +00:00
parent 7b45c9c8f0
commit 99be1b14f2
2 changed files with 13 additions and 12 deletions

View File

@ -1562,9 +1562,6 @@ class ChatControl(ChatControlBase):
else:
send_file_menuitem.set_sensitive(False)
# compact_view_menuitem
compact_view_menuitem.set_active(self.hide_chat_buttons_current)
# check if it's possible to convert to groupchat
if gajim.get_transport_name_from_jid(jid):
convert_to_gc_menuitem.set_sensitive(False)

View File

@ -3258,15 +3258,19 @@ class TransformChatToMUC:
self.guests_treeview.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
# set jabber id and pseudos
for jid in gajim.contacts.get_jid_list(self.account):
contact = \
gajim.contacts.get_contact_with_highest_priority(self.account, jid)
if contact.jid not in self.auto_jids:
if contact.show not in ('offline', 'error'):
name = contact.name
if name == '':
name = jid.split('@')[0]
self.store.append([name, jid])
for account in gajim.contacts.get_accounts():
for jid in gajim.contacts.get_jid_list(account):
contact = \
gajim.contacts.get_contact_with_highest_priority(account, jid)
contact_transport = gajim.get_transport_name_from_jid(jid)
if contact.jid not in self.auto_jids and \
not contact_transport and \
contact.jid not in gajim.interface.minimized_controls[account]:
if contact.show not in ('offline', 'error'):
name = contact.name
if name == '':
name = jid.split('@')[0]
self.store.append([name, jid])
# show all but...
self.window.show_all()