Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 9767:57ceffb13963 | 9768:ab12fd48e124 |
|---|---|
| 61 return true; | 61 return true; |
| 62 elseif st_name == "message" then | 62 elseif st_name == "message" then |
| 63 if st_type == "headline" then | 63 if st_type == "headline" then |
| 64 return false; | 64 return false; |
| 65 end | 65 end |
| 66 if stanza:get_child("sent", "urn:xmpp:carbons:2") then | |
| 67 return true; | |
| 68 end | |
| 66 if stanza:get_child("body") then | 69 if stanza:get_child("body") then |
| 67 return true; | 70 return true; |
| 68 end | 71 end |
| 69 return false; | 72 return false; |
| 70 end | 73 end |