Task lists WIP:
* fix retractation
This commit is contained in:
parent
22617def5e
commit
d16bdd9a87
@ -128,7 +128,7 @@ export class PubSubManager {
|
|||||||
type: 'set',
|
type: 'set',
|
||||||
to: this.roomJID
|
to: this.roomJID
|
||||||
}).c('pubsub', { xmlns: Strophe.NS.PUBSUB })
|
}).c('pubsub', { xmlns: Strophe.NS.PUBSUB })
|
||||||
.c('retract', { node: this.node })
|
.c('retract', { node: this.node, notify: '1' })
|
||||||
.c('item', { id })
|
.c('item', { id })
|
||||||
|
|
||||||
await api.sendIQ(stanza)
|
await api.sendIQ(stanza)
|
||||||
@ -258,7 +258,7 @@ export class PubSubManager {
|
|||||||
*/
|
*/
|
||||||
_handleRetractations (stanza) {
|
_handleRetractations (stanza) {
|
||||||
// Note: here we don't know the object type. We must try on each collection.
|
// 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 id of ids) {
|
||||||
for (const key in this.types) {
|
for (const key in this.types) {
|
||||||
const type = this.types[key]
|
const type = this.types[key]
|
||||||
|
@ -132,6 +132,8 @@ end
|
|||||||
|
|
||||||
local function get_broadcaster(room_jid, room_host)
|
local function get_broadcaster(room_jid, room_host)
|
||||||
local function simple_broadcast(kind, node, jids, item, _, node_obj)
|
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 then
|
||||||
if node_obj.config["notify_"..kind] == false then
|
if node_obj.config["notify_"..kind] == false then
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user