Commit 17ff653872ea29756b16c13932a8b662d5e1b663
fix channel-related reply messages
mix irving committed on 8/17/2017, 9:27:47 AMParent: 15a460234078068aa204f2744f02d41bdc1212bd
Files changed
app/page/threadShow.js | changed |
app/page/threadShow.js | ||
---|---|---|
@@ -17,18 +17,19 @@ | ||
17 | 17 | return nest('app.page.threadShow', threadShow) |
18 | 18 | |
19 | 19 | function threadShow (location) { |
20 | 20 | // 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') | |
22 | 23 | |
23 | 24 | const thread = api.app.html.thread(root) |
24 | 25 | |
25 | 26 | const meta = { |
26 | 27 | type: 'post', |
27 | 28 | root, |
28 | 29 | branch: get(last(location.replies), 'key'), |
29 | 30 | // >> lastId? CHECK THIS LOGIC |
30 | - channel: channel, | |
31 | + channel, | |
31 | 32 | recps: get(location, 'value.content.recps') |
32 | 33 | } |
33 | 34 | const composer = api.message.html.compose({ meta, shrink: false }) |
34 | 35 | const subject = computed(thread.subject, subject => subject || strings.threadShow) |
Built with git-ssb-web