git ssb

2+

mixmix / ticktack



Commit ff6e4fcbd2dfe0555d24afd3af1349fdbf313835

issue #70: strange bug happening when switching from channelSubscriptions to any other location.

andre alves garzia committed on 2/5/2018, 7:12:51 PM
Parent: e0d107ad69994e3ff7d0afbd9e1e9e5c94f195f8

Files changed

app/html/channelCard.jschanged
channel/obs.jschanged
app/html/channelCard.jsView
@@ -1,6 +1,6 @@
11 const nest = require('depnest')
2-const { h, when, Value } = require('mutant')
2+const { h, when } = require('mutant')
33
44
55 exports.gives = nest('app.html.channelCard')
66
@@ -21,14 +21,10 @@
2121 const myId = api.keys.sync.id()
2222 const { subscribe, unsubscribe } = api.channel.async
2323 const { isSubscribedTo } = api.channel.obs
2424 const youSubscribe = isSubscribedTo(channel, myId)
25-
26- console.log("channel card for", channel)
27-
2825
2926 const goToChannel = () => {
30-
3127 api.history.sync.push({ page: 'channelShow', channel: channel })
3228 }
3329
3430 return h('ChannelCard', [
channel/obs.jsView
@@ -18,7 +18,7 @@
1818 }
1919
2020 const { subscribed } = api.channel.obs
2121 const myChannels = subscribed(id)
22- return computed([myChannels], (v) => [...v].includes(channel))
22+ return computed([myChannels], (v) => v.has(channel))
2323 }
2424 }

Built with git-ssb-web