Handle unsubscription from channel
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user