Changeset

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 8233:4e7269c53659
children 8466:df970f76c720 8474:7ad9d7c4161c
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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)