Handle unsubscription from channel

This commit is contained in:
Anders Rune Jensen
2017-05-02 21:59:04 +02:00
parent 0cc7bfcafe
commit 33e20ef93d
+2
View File
@@ -617,6 +617,8 @@ function render(opts, c)
return ' connected to a pub' return ' connected to a pub'
else if (c.type == 'channel' && c.subscribed) else if (c.type == 'channel' && c.subscribed)
return ' subscribed to channel <a href="/channel/' + c.channel + '">#' + c.channel + "</a>" return ' subscribed to channel <a href="/channel/' + c.channel + '">#' + c.channel + "</a>"
else if (c.type == 'channel' && !c.subscribed)
return ' unsubscribed from channel <a href="/channel/' + c.channel + '">#' + c.channel + "</a>"
else else
return renderDefault(c) return renderDefault(c)
} }