From 11e894c5c9efbc6ee141f614eea3a328517aee5b Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 8 May 2017 20:54:59 -1000 Subject: Exclude channel from list if all its subscribers unsubscribed --- lib/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/app.js b/lib/app.js index a76687c..8a74dbb 100644 --- a/lib/app.js +++ b/lib/app.js @@ -270,6 +270,9 @@ App.prototype.streamChannels = function (opts) { return pull( this.sbot.messagesByType({type: 'channel', reverse: true}), this.unboxMessages(), + pull.filter(function (msg) { + return msg.value.content.subscribed + }), pull.map(function (msg) { return msg.value.content.channel }), -- cgit v1.2.3