Do not ignore empty topics
This commit is contained in:
parent
088c6c6a0b
commit
d4590949f7
1 changed files with 14 additions and 11 deletions
|
@ -960,8 +960,11 @@ def on_groupchat_subject(self, message):
|
|||
room_from = message.getMucroom()
|
||||
tab = self.get_tab_by_name(room_from, tabs.MucTab)
|
||||
subject = message['subject']
|
||||
if not subject or not tab:
|
||||
if subject is None or not tab:
|
||||
return
|
||||
if subject != tab.topic:
|
||||
# Do not display the message if the subject did not change or if we
|
||||
# receive an empty topic when joining the room.
|
||||
if nick_from:
|
||||
tab.add_message(_("\x19%(info_col)s}%(nick)s set the subject to: %(subject)s") %
|
||||
{'info_col': dump_tuple(get_theme().COLOR_INFORMATION_TEXT), 'nick':nick_from, 'subject':subject},
|
||||
|
|
Loading…
Reference in a new issue