|
|
|
@ -14,7 +14,6 @@ GNU General Public License for more details.
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
"""
|
|
|
|
|
# TODO: Replace most of these with a query API
|
|
|
|
|
import os
|
|
|
|
|
import json
|
|
|
|
|
|
|
|
|
@ -67,9 +66,9 @@ class SubscriptionManager:
|
|
|
|
|
every subscription a jid has in the context of @module.
|
|
|
|
|
"""
|
|
|
|
|
if not module in self._subscriptions:
|
|
|
|
|
return []
|
|
|
|
|
return {}
|
|
|
|
|
if not jid in self._subscriptions[module]:
|
|
|
|
|
return []
|
|
|
|
|
return {}
|
|
|
|
|
|
|
|
|
|
return self._subscriptions[module][jid]
|
|
|
|
|
|
|
|
|
|