* If the room bookmark has no print_status defined, then default to
configured print_status_in_muc
This commit is contained in:
parent
e58130611d
commit
b82a36083e
|
@ -843,12 +843,9 @@ class GroupchatControl(ChatControlBase):
|
||||||
found = False
|
found = False
|
||||||
for bookmark in gajim.connections[self.account].bookmarks:
|
for bookmark in gajim.connections[self.account].bookmarks:
|
||||||
if bookmark['jid'] == self.room_jid:
|
if bookmark['jid'] == self.room_jid:
|
||||||
found = True
|
print_status=bookmark['print_status']
|
||||||
break
|
break
|
||||||
print_status = None
|
if print_status is None:
|
||||||
if found:
|
|
||||||
print_status = bookmark['print_status']
|
|
||||||
else:
|
|
||||||
print_status = gajim.config.get('print_status_in_muc')
|
print_status = gajim.config.get('print_status_in_muc')
|
||||||
if show == 'offline' and print_status in ('all', 'in_and_out'):
|
if show == 'offline' and print_status in ('all', 'in_and_out'):
|
||||||
st = _('%s has left') % nick
|
st = _('%s has left') % nick
|
||||||
|
|
Loading…
Reference in New Issue