aboutsummaryrefslogtreecommitdiffstats
path: root/spec/scansion/pubsub_multi_items.scs
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-19 18:11:50 +0200
committerKim Alvefur <zash@zash.se>2021-10-19 18:11:50 +0200
commit4b05d0f2402475fea608fd3e48a96364bc6da4f2 (patch)
tree8553f7e8e4b57c64b2599666f87b5e3ca14cc0b7 /spec/scansion/pubsub_multi_items.scs
parent3e55057a8574af83e42ec96041283111e34ef7d4 (diff)
downloadprosody-4b05d0f2402475fea608fd3e48a96364bc6da4f2.tar.gz
prosody-4b05d0f2402475fea608fd3e48a96364bc6da4f2.zip
mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Default left as 'never' in mod_pubsub to preserve the previous behavior. Unclear if this is desirable, but can always be changed later. In mod_pep this allows turning off the automatic resending of most recent item.
Diffstat (limited to 'spec/scansion/pubsub_multi_items.scs')
-rw-r--r--spec/scansion/pubsub_multi_items.scs12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/scansion/pubsub_multi_items.scs b/spec/scansion/pubsub_multi_items.scs
index 331093ca..d4f2e01b 100644
--- a/spec/scansion/pubsub_multi_items.scs
+++ b/spec/scansion/pubsub_multi_items.scs
@@ -79,6 +79,18 @@ Alice receives:
</option>
<value>publishers</value>
</field>
+ <field type='list-single' var='pubsub#send_last_published_item'>
+ <option label='never'>
+ <value>never</value>
+ </option>
+ <option label='on_sub'>
+ <value>on_sub</value>
+ </option>
+ <option label='on_sub_and_presence'>
+ <value>on_sub_and_presence</value>
+ </option>
+ <value>never</value>
+ </field>
<field var="pubsub#deliver_notifications" label="Whether to deliver event notifications" type="boolean">
<value>1</value>
</field>