Mercurial > prosody-hg
diff plugins/muc/muc.lib.lua @ 8465:0ec72e67f797
MUC: Always send subject message, even if it is empty (fixes #1053)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 09 Dec 2017 14:39:48 +0100 |
| parents | 69827ee1f951 |
| children | df970f76c720 7ad9d7c4161c |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Thu Sep 14 01:27:36 2017 +0200 +++ b/plugins/muc/muc.lib.lua Sat Dec 09 14:39:48 2017 +0100 @@ -207,9 +207,7 @@ 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)
