Commit 9bb4dd6572b0113dd462049c31d372b6062f9ac5
preserve channel on replies to messages
Matt McKegg committed on 2/19/2017, 11:59:44 PMParent: e08d5a8b3a1f4197ef31f35de3e758bb2600f214
Files changed
modules/page/html/render/message.js | changed |
modules/page/html/render/message.js | ||
---|---|---|
@@ -25,8 +25,9 @@ | ||
25 | 25 | var meta = Struct({ |
26 | 26 | type: 'post', |
27 | 27 | root: Proxy(id), |
28 | 28 | branch: Proxy(id), |
29 | + channel: Value(undefined), | |
29 | 30 | recps: Value(undefined) |
30 | 31 | }) |
31 | 32 | |
32 | 33 | var compose = api.message.html.compose({ |
@@ -47,8 +48,9 @@ | ||
47 | 48 | |
48 | 49 | var isReply = !!value.content.root |
49 | 50 | var thread = api.feed.obs.thread(id, {branch: isReply}) |
50 | 51 | |
52 | + meta.channel.set(value.content.channel) | |
51 | 53 | meta.root.set(thread.rootId) |
52 | 54 | |
53 | 55 | // if root thread, reply to last post |
54 | 56 | meta.branch.set(isReply ? thread.branchId : thread.lastId) |
Built with git-ssb-web