[Jim] fix wrong context menu. Fixes #1638
This commit is contained in:
parent
c307cb61f6
commit
69f8e83bcc
|
@ -641,7 +641,7 @@ class ChatControlBase(MessageControl):
|
|||
jid = contact.jid
|
||||
|
||||
if self.type_id == message_control.TYPE_GC:
|
||||
start_removing_from = 7 # # this is from the seperator and after
|
||||
start_removing_from = 6 # # this is from the seperator and after
|
||||
else:
|
||||
if _('Not in Roster') in contact.groups: # for add_to_roster_menuitem
|
||||
childs[5].show()
|
||||
|
|
|
@ -301,6 +301,7 @@ class GroupchatControl(ChatControlBase):
|
|||
c = gajim.contacts.get_gc_contact(self.account, self.room_jid, self.nick)
|
||||
if c.affiliation not in ('owner', 'admin'):
|
||||
childs[1].set_sensitive(False)
|
||||
menu = self.remove_possible_switch_to_menuitems(menu)
|
||||
return menu
|
||||
|
||||
def on_message(self, nick, msg, tim):
|
||||
|
|
Loading…
Reference in New Issue