Fix handling channel unsubscription

This commit is contained in:
cel
2017-05-12 12:29:05 -10:00
parent efdeaa0a62
commit 4cfbba635d
+1 -1
View File
@@ -148,7 +148,7 @@ exports.init = function (sbot, config) {
if (msg.value.content.subscribed)
channelSubscriptions[msg.value.content.channel] = 1
else
delete following[msg.value.content.channel]
delete channelSubscriptions[msg.value.content.channel]
}
})