Commit 33e20ef93d5f96c82a45c32931f1a41f330d4acc
Handle unsubscription from channel
Anders Rune Jensen committed on 5/2/2017, 7:59:04 PMParent: 0cc7bfcafecd2fbc85c4690cd51bb089e00b2053
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -616,8 +616,10 @@ | |||
616 | 616 … | else if (c.type == 'pub') | |
617 | 617 … | return ' connected to a pub' | |
618 | 618 … | else if (c.type == 'channel' && c.subscribed) | |
619 | 619 … | return ' subscribed to channel <a href="/channel/' + c.channel + '">#' + c.channel + "</a>" | |
620 … | + else if (c.type == 'channel' && !c.subscribed) | ||
621 … | + return ' unsubscribed from channel <a href="/channel/' + c.channel + '">#' + c.channel + "</a>" | ||
620 | 622 … | else | |
621 | 623 … | return renderDefault(c) | |
622 | 624 … | } | |
623 | 625 … |
Built with git-ssb-web