Task lists WIP:

* fix retractation
This commit is contained in:
John Livingston 2024-05-06 10:43:42 +02:00
parent 22617def5e
commit d16bdd9a87
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,7 @@ export class PubSubManager {
type: 'set',
to: this.roomJID
}).c('pubsub', { xmlns: Strophe.NS.PUBSUB })
.c('retract', { node: this.node })
.c('retract', { node: this.node, notify: '1' })
.c('item', { id })
await api.sendIQ(stanza)
@ -258,7 +258,7 @@ export class PubSubManager {
*/
_handleRetractations (stanza) {
// Note: here we don't know the object type. We must try on each collection.
const ids = sizzle('', stanza).map(i => i.getAttribute('id'))
const ids = sizzle('retract', stanza).map(i => i.getAttribute('id'))
for (const id of ids) {
for (const key in this.types) {
const type = this.types[key]

View File

@ -132,6 +132,8 @@ end
local function get_broadcaster(room_jid, room_host)
local function simple_broadcast(kind, node, jids, item, _, node_obj)
-- module:log("debug", "simple_broadcast call, kind=%q, from %s for node %s", kind, room_jid, node);
if node_obj then
if node_obj.config["notify_"..kind] == false then
return;