Comparison

spec/scansion/mam_extended.scs @ 11269:342ac5d806fb

mod_mam: Add support for page flipping This was easy. Needs tests tho, 100% chance of the logic being backwards.
author Kim Alvefur <zash@zash.se>
date Mon, 30 Nov 2020 21:12:01 +0100
parent 11268:e3f6f0b39e7b
child 11270:eaaa8ca742a7
comparison
equal deleted inserted replaced
11268:e3f6f0b39e7b 11269:342ac5d806fb
74 <first></first> 74 <first></first>
75 <last></last> 75 <last></last>
76 </set> 76 </set>
77 </fin> 77 </fin>
78 </iq> 78 </iq>
79
80 # Get results in reverse order
81 Romeo sends:
82 <iq type="set" id="mamquery2">
83 <query xmlns="urn:xmpp:mam:2" queryid="q1">
84 <flip-page/>
85 </query>
86 </iq>
87
88 Romeo receives:
89 <message to="${Romeo's full JID}">
90 <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}">
91 <forwarded xmlns="urn:xmpp:forward:0">
92 <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/>
93 <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat02" from="${Romeo's full JID}">
94 <body>U there?</body>
95 </message>
96 </forwarded>
97 </result>
98 </message>
99
100 Romeo receives:
101 <message to="${Romeo's full JID}">
102 <result xmlns="urn:xmpp:mam:2" queryid="q1" id="{scansion:any}">
103 <forwarded xmlns="urn:xmpp:forward:0">
104 <delay stamp="2008-08-22T21:09:04Z" xmlns="urn:xmpp:delay"/>
105 <message to="someone@localhost" xmlns="jabber:client" type="chat" xml:lang="en" id="chat01" from="${Romeo's full JID}">
106 <body>Hello</body>
107 </message>
108 </forwarded>
109 </result>
110 </message>
111
112 # FIXME unstable tag order from util.rsm
113 Romeo receives:
114 <iq type="result" id="mamquery2" to="${Romeo's full JID}">
115 <fin xmlns="urn:xmpp:mam:2" complete="true" queryid="q1">
116 <set xmlns="http://jabber.org/protocol/rsm" scansion:strict="false">
117 <count>2</count>
118 <first></first>
119 <last></last>
120 </set>
121 </fin>
122 </iq>