git ssb

9+

cel / ssb-viewer



Commit 33e20ef93d5f96c82a45c32931f1a41f330d4acc

Handle unsubscription from channel

Anders Rune Jensen committed on 5/2/2017, 7:59:04 PM
Parent: 0cc7bfcafecd2fbc85c4690cd51bb089e00b2053

Files changed

index.jschanged
index.jsView
@@ -616,8 +616,10 @@
616616 else if (c.type == 'pub')
617617 return ' connected to a pub'
618618 else if (c.type == 'channel' && c.subscribed)
619619 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>"
620622 else
621623 return renderDefault(c)
622624 }
623625

Built with git-ssb-web