diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-09 14:39:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-09 14:39:48 +0100 |
commit | f535c57dd1b8d484da74686a75a83a763ba21be6 (patch) | |
tree | e718a1417f8c52cd013ec22b4bd3224ff97c2b37 /plugins/muc/muc.lib.lua | |
parent | 5dee36d8385e36c4d72a97a33cf3c934af3d6633 (diff) | |
download | prosody-f535c57dd1b8d484da74686a75a83a763ba21be6.tar.gz prosody-f535c57dd1b8d484da74686a75a83a763ba21be6.zip |
MUC: Always send subject message, even if it is empty (fixes #1053)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
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) |