MUC: Test that <subject/> + <thread/> is not handled as subject change
authorKim Alvefur <zash@zash.se>
Tue, 23 Jan 2024 13:00:58 +0100
changeset 13418 d54364746a7c
parent 13417 992389af2372
child 13419 f34b33cb1383
MUC: Test that <subject/> + <thread/> is not handled as subject change Ref #667 Ref #1838
spec/scansion/muc_subject_issue_667.scs
--- a/spec/scansion/muc_subject_issue_667.scs	Sun Jan 21 20:08:00 2024 +0100
+++ b/spec/scansion/muc_subject_issue_667.scs	Tue Jan 23 13:00:58 2024 +0100
@@ -42,6 +42,21 @@
 		<body>Hello everyone</body>
 	</message>
 
+# this should be treated as a normal message
+Romeo sends:
+	<message to="issue667@conference.localhost" type="groupchat">
+		<subject>New thread</subject>
+		<thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
+		<store xmlns="urn:xmpp:hints"/>
+	</message>
+
+Romeo receives:
+	<message type="groupchat" from="issue667@conference.localhost/Romeo">
+		<subject>New thread</subject>
+		<thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
+		<store xmlns="urn:xmpp:hints"/>
+	</message>
+
 # Resync
 Romeo sends:
 	<presence to="issue667@conference.localhost/Romeo">
@@ -63,6 +78,13 @@
 		<body>Hello everyone</body>
 	</message>
 
+Romeo receives:
+	<message type="groupchat" from="issue667@conference.localhost/Romeo">
+		<subject>New thread</subject>
+		<thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
+		<store xmlns="urn:xmpp:hints"/>
+	</message>
+
 # the still empty subject
 Romeo receives:
 	<message type="groupchat" from="issue667@conference.localhost">
@@ -116,6 +138,13 @@
 
 Romeo receives:
 	<message type="groupchat" from="issue667@conference.localhost/Romeo">
+		<subject>New thread</subject>
+		<thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
+		<store xmlns="urn:xmpp:hints"/>
+	</message>
+
+Romeo receives:
+	<message type="groupchat" from="issue667@conference.localhost/Romeo">
 		<body>Lorem ipsum dolor sit amet</body>
 	</message>