From ac1e8788440aa45d9145d56b71a3d73447d5aff9 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sat, 9 Dec 2017 14:39:48 +0100
Subject: MUC: Always send subject message, even if it is empty (fixes #1053)

---
 plugins/muc/muc.lib.lua | 4 +---
 1 file changed, 1 insertion(+), 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)
-- 
cgit v1.2.3