Fix regression from 2ca0ca38

Fixes #9230
This commit is contained in:
Philipp Hörist 2018-07-05 18:06:48 +02:00
parent 73f290b518
commit 3b7055ca74
1 changed files with 5 additions and 7 deletions

View File

@ -1975,13 +1975,11 @@ class GroupchatControl(ChatControlBase):
and (not obj.status_code or '303' not in obj.status_code) and not \ and (not obj.status_code or '303' not in obj.status_code) and not \
right_changed: right_changed:
st = '' st = ''
print_status = None con = app.connections[self.account]
for bookmark in app.connections[self.account].bookmarks: bookmarks = con.get_module('Bookmarks').bookmarks
if bookmark['jid'] == self.room_jid: bookmark = bookmarks.get(self.room_jid, None)
print_status = bookmark.get('print_status', None) print_status = bookmark.get(
break 'print_status', app.config.get('print_status_in_muc'))
if not print_status:
print_status = app.config.get('print_status_in_muc')
if obj.show == 'offline': if obj.show == 'offline':
if obj.nick in self.attention_list: if obj.nick in self.attention_list:
self.attention_list.remove(obj.nick) self.attention_list.remove(obj.nick)