Ignore OTR policy if message meant for a groupchat
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
parent
57d12c3483
commit
2c34260b99
|
@ -57,8 +57,9 @@ local function check_message_otr(event)
|
|||
jid = strip_full_jid(stanza.attr.from);
|
||||
|
||||
-- Continue processing the signal if no body is found since
|
||||
-- we can't enforce OTR with an empty payload.
|
||||
if body == nil then
|
||||
-- we can't enforce OTR with an empty payload or if the message
|
||||
-- is meant for a groupchat.
|
||||
if body == nil or stanza.attr.type == "groupchat" then
|
||||
return nil;
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue