aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/muc_subject_issue_667.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-01-23 13:00:58 +0100
committerKim Alvefur <zash@zash.se>2024-01-23 13:00:58 +0100
commitc8c1482dae0088d467575a841d935e2050598c85 (patch)
tree1d4c5c778b9668cb32fbce9b4c1b443cfa50b044 /spec/scansion/muc_subject_issue_667.scs
parent607f8ffee53e6ead80c5c885a455d6396ddc77ee (diff)
downloadprosody-c8c1482dae0088d467575a841d935e2050598c85.tar.gz
prosody-c8c1482dae0088d467575a841d935e2050598c85.zip
MUC: Test that <subject/> + <thread/> is not handled as subject change
Ref #667 Ref #1838
Diffstat (limited to 'spec/scansion/muc_subject_issue_667.scs')
-rw-r--r--spec/scansion/muc_subject_issue_667.scs29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/scansion/muc_subject_issue_667.scs b/spec/scansion/muc_subject_issue_667.scs
index 74980073..a4544ce4 100644
--- a/spec/scansion/muc_subject_issue_667.scs
+++ b/spec/scansion/muc_subject_issue_667.scs
@@ -42,6 +42,21 @@ Romeo receives:
<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 @@ Romeo receives:
<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:
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>