Treat messages containing subject as regular message if they contain body or thread.

Fixes #3452 in combination with slixmpp@2dda6b80.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-03-23 17:07:59 +00:00
parent 53ededcb19
commit 4128cc847b
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -653,8 +653,6 @@ class HandlerCore:
"""
Triggered whenever a message is received from a multi-user chat room.
"""
if message['subject']:
return
room_from = message['from'].bare
if message['type'] == 'error': # Check if it's an error
@ -1312,8 +1310,6 @@ class HandlerCore:
"""
Triggered when the topic is changed.
"""
if message['body'] or message['thread']:
return
nick_from = message['mucnick']
room_from = message.get_mucroom()
tab = self.core.tabs.by_name_and_class(room_from, tabs.MucTab)