git ssb

2+

mixmix / ticktack



Commit 17ff653872ea29756b16c13932a8b662d5e1b663

fix channel-related reply messages

mix irving committed on 8/17/2017, 9:27:47 AM
Parent: 15a460234078068aa204f2744f02d41bdc1212bd

Files changed

app/page/threadShow.jschanged
app/page/threadShow.jsView
@@ -17,18 +17,19 @@
1717 return nest('app.page.threadShow', threadShow)
1818
1919 function threadShow (location) {
2020 // location = a thread (message decorated with replies)
21- const { key: root, channel } = location
21+ const { key: root, value } = location
22+ const channel = get(value, 'content.channel')
2223
2324 const thread = api.app.html.thread(root)
2425
2526 const meta = {
2627 type: 'post',
2728 root,
2829 branch: get(last(location.replies), 'key'),
2930 // >> lastId? CHECK THIS LOGIC
30- channel: channel,
31+ channel,
3132 recps: get(location, 'value.content.recps')
3233 }
3334 const composer = api.message.html.compose({ meta, shrink: false })
3435 const subject = computed(thread.subject, subject => subject || strings.threadShow)

Built with git-ssb-web