Commit dfcc1d97 authored by JC Brand's avatar JC Brand

Make sure encrypted messages aren't falsely matched as CSNs

parent 18dad134
......@@ -82163,7 +82163,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
attrs = attrs.attributes;
}
return attrs['chat_state'] && !attrs['oob_url'] && !attrs['file'] && !attrs['message'];
return attrs['chat_state'] && !attrs['oob_url'] && !attrs['file'] && !(attrs['is_encrypted'] && attrs['plaintext']) && !attrs['message'];
};
u.isHeadlineMessage = function (_converse, message) {
......@@ -602,6 +602,7 @@
return attrs['chat_state'] &&
!attrs['oob_url'] &&
!attrs['file'] &&
!(attrs['is_encrypted'] && attrs['plaintext']) &&
!attrs['message'];
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment