# HG changeset patch # User Kim Alvefur # Date 1512826788 -3600 # Node ID 0ec72e67f797965e4778b063ebb2fb41ce401b4d # Parent 4e7269c5365970f40046f076a83969c550084386 MUC: Always send subject message, even if it is empty (fixes #1053) diff -r 4e7269c53659 -r 0ec72e67f797 plugins/muc/muc.lib.lua --- 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)