Comparison

spec/scansion/muc_subject_issue_667.scs @ 13414:d54364746a7c

MUC: Test that <subject/> + <thread/> is not handled as subject change Ref #667 Ref #1838
author Kim Alvefur <zash@zash.se>
date Tue, 23 Jan 2024 13:00:58 +0100
parent 9708:6507df6d2c55
comparison
equal deleted inserted replaced
13413:992389af2372 13414:d54364746a7c
40 <message type="groupchat" from="issue667@conference.localhost/Romeo"> 40 <message type="groupchat" from="issue667@conference.localhost/Romeo">
41 <subject>Greetings</subject> 41 <subject>Greetings</subject>
42 <body>Hello everyone</body> 42 <body>Hello everyone</body>
43 </message> 43 </message>
44 44
45 # this should be treated as a normal message
46 Romeo sends:
47 <message to="issue667@conference.localhost" type="groupchat">
48 <subject>New thread</subject>
49 <thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
50 <store xmlns="urn:xmpp:hints"/>
51 </message>
52
53 Romeo receives:
54 <message type="groupchat" from="issue667@conference.localhost/Romeo">
55 <subject>New thread</subject>
56 <thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
57 <store xmlns="urn:xmpp:hints"/>
58 </message>
59
45 # Resync 60 # Resync
46 Romeo sends: 61 Romeo sends:
47 <presence to="issue667@conference.localhost/Romeo"> 62 <presence to="issue667@conference.localhost/Romeo">
48 <x xmlns="http://jabber.org/protocol/muc"/> 63 <x xmlns="http://jabber.org/protocol/muc"/>
49 </presence> 64 </presence>
59 74
60 Romeo receives: 75 Romeo receives:
61 <message type="groupchat" from="issue667@conference.localhost/Romeo"> 76 <message type="groupchat" from="issue667@conference.localhost/Romeo">
62 <subject>Greetings</subject> 77 <subject>Greetings</subject>
63 <body>Hello everyone</body> 78 <body>Hello everyone</body>
79 </message>
80
81 Romeo receives:
82 <message type="groupchat" from="issue667@conference.localhost/Romeo">
83 <subject>New thread</subject>
84 <thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
85 <store xmlns="urn:xmpp:hints"/>
64 </message> 86 </message>
65 87
66 # the still empty subject 88 # the still empty subject
67 Romeo receives: 89 Romeo receives:
68 <message type="groupchat" from="issue667@conference.localhost"> 90 <message type="groupchat" from="issue667@conference.localhost">
114 <body>Hello everyone</body> 136 <body>Hello everyone</body>
115 </message> 137 </message>
116 138
117 Romeo receives: 139 Romeo receives:
118 <message type="groupchat" from="issue667@conference.localhost/Romeo"> 140 <message type="groupchat" from="issue667@conference.localhost/Romeo">
141 <subject>New thread</subject>
142 <thread>498acea5-5894-473f-b4c6-c77319d11c75</thread>
143 <store xmlns="urn:xmpp:hints"/>
144 </message>
145
146 Romeo receives:
147 <message type="groupchat" from="issue667@conference.localhost/Romeo">
119 <body>Lorem ipsum dolor sit amet</body> 148 <body>Lorem ipsum dolor sit amet</body>
120 </message> 149 </message>
121 150
122 # Finally, the topic 151 # Finally, the topic
123 Romeo receives: 152 Romeo receives: