Software / code / prosody-modules
Changeset
4056:554f64c8d0c0
mod_muc_markers: Expose is_markable utility function to other modules
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 02 Jul 2020 12:07:08 +0100 |
| parents | 4055:cf1304ad2336 |
| children | 4057:2ede3450abca |
| files | mod_muc_markers/mod_muc_markers.lua |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_markers/mod_muc_markers.lua Tue Jun 30 19:32:39 2020 +0200 +++ b/mod_muc_markers/mod_muc_markers.lua Thu Jul 02 12:07:08 2020 +0100 @@ -95,3 +95,7 @@ function get_user_read_marker(user_jid, room_jid) return muc_marker_map_store:get(user_jid, room_jid); end + +function is_markable(stanza) + return not not stanza:get_child("markable", xmlns_markers); +end