git ssb

2+

mixmix / ticktack



Commit d37fd6c80d7a395cf25c469477fc0b4695a51e5e

Merge branch 'master' of github.com:ticktackim/ticktack-wp1 into reply_to_thread

mix irving committed on 8/15/2017, 11:39:09 PM
Parent: a4727341e869458648277d26f61c051de3eec9da
Parent: 6ec0db7801b46b66f52d44d1d0a6006fdc71b53f

Files changed

app/html/thread-card.jschanged
app/html/thread-card.jsView
@@ -85,10 +85,12 @@
8585 const lastReply = thread.replies && maxBy(thread.replies, r => r.timestamp)
8686 const replySample = lastReply ? subject(lastReply) : null
8787
8888 const onClick = opts.onClick || function () { api.history.sync.push(thread) }
89+ const id = `${thread.key}-${JSON.stringify(opts)}`
90+ // id is only here to help morphdom morph accurately
8991
90- return h('div.thread', {'ev-click': onClick }, [
92+ return h('div.thread', { 'ev-click': onClick, id }, [
9193 h('div.context', threadIcon(thread)),
9294 h('div.content', [
9395 subjectEl,
9496 replySample ? h('div.reply', [

Built with git-ssb-web