From 31a95f774d81b0079a9606a22fa7142e299e2f6b Mon Sep 17 00:00:00 2001 From: John Livingston Date: Sun, 12 May 2024 16:24:14 +0200 Subject: [PATCH] Comments. --- .../mod_pubsub_peertubelivechat.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prosody-modules/mod_pubsub_peertubelivechat/mod_pubsub_peertubelivechat.lua b/prosody-modules/mod_pubsub_peertubelivechat/mod_pubsub_peertubelivechat.lua index 958a0c1f..8c336da5 100644 --- a/prosody-modules/mod_pubsub_peertubelivechat/mod_pubsub_peertubelivechat.lua +++ b/prosody-modules/mod_pubsub_peertubelivechat/mod_pubsub_peertubelivechat.lua @@ -17,6 +17,10 @@ -- * unsubscribing users that have left the room (the front-end will subscribe again when needed) -- * unsubscribing users when losing their affiliation +-- FIXME: empty subscribers on Prosody startup? Normally users will subscribe when opening the app. +-- And this module will unsubscribe when leaving the room. +-- But if prosody crash, or is restarted, subscribers may remain... + local pubsub = require "util.pubsub"; local jid_bare = require "util.jid".bare; local jid_split = require "util.jid".split;