Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 9768:ab12fd48e124 0.11
mod_csi_simple: Consider messages forwarded from another of the users clients as important (fixes part of #1250)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Jan 2019 21:08:11 +0100 |
parent | 9767:57ceffb13963 |
child | 9769:150e9574c149 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Jan 06 21:03:09 2019 +0100 +++ b/plugins/mod_csi_simple.lua Sun Jan 06 21:08:11 2019 +0100 @@ -63,6 +63,9 @@ if st_type == "headline" then return false; end + if stanza:get_child("sent", "urn:xmpp:carbons:2") then + return true; + end if stanza:get_child("body") then return true; end