Terms&Conditions fixes:
* adding hints (no-store, no-copy) on xmpp messages * frontend will ignore any archived message
This commit is contained in:
@ -36,6 +36,11 @@ converse.plugins.add('livechat-converse-terms', {
|
||||
console.error('Invalid x-livechat-terms type: ', type)
|
||||
return
|
||||
}
|
||||
if (attrs.is_archived) {
|
||||
// This should not happen, as we add some no-store hints. But, just in case.
|
||||
console.info('Dropping an archived x-livechat-terms message')
|
||||
return
|
||||
}
|
||||
// console.info('Received a x-livechat-terms message', attrs)
|
||||
const options = {}
|
||||
options['x_livechat_terms_' + type] = attrs
|
||||
|
Reference in New Issue
Block a user