aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-09 14:39:48 +0100
committerKim Alvefur <zash@zash.se>2017-12-09 14:39:48 +0100
commitdcc5e0c432d1ab5f6d4ee39f685d3c8273139213 (patch)
treee718a1417f8c52cd013ec22b4bd3224ff97c2b37
parenta5deab5ee0d2c40f082daa179e39167365d699ee (diff)
downloadprosody-dcc5e0c432d1ab5f6d4ee39f685d3c8273139213.tar.gz
prosody-dcc5e0c432d1ab5f6d4ee39f685d3c8273139213.zip
MUC: Always send subject message, even if it is empty (fixes #1053)
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index f8e8f74d..4b299bde 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -207,9 +207,7 @@ function room_mt:send_history(to, stanza)
self:_route_stanza(msg);
end
end
- if self._data['subject'] then
- self:_route_stanza(st.message({type='groupchat', from=self._data['subject_from'] or self.jid, to=to}):tag("subject"):text(self._data['subject']));
- end
+ self:_route_stanza(st.message({type='groupchat', from=self._data['subject_from'] or self.jid, to=to}):tag("subject"):text(self._data['subject']));
end
function room_mt:get_disco_info(stanza)