git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 9bb4dd6572b0113dd462049c31d372b6062f9ac5

preserve channel on replies to messages

Matt McKegg committed on 2/19/2017, 11:59:44 PM
Parent: e08d5a8b3a1f4197ef31f35de3e758bb2600f214

Files changed

modules/page/html/render/message.jschanged
modules/page/html/render/message.jsView
@@ -25,8 +25,9 @@
2525 var meta = Struct({
2626 type: 'post',
2727 root: Proxy(id),
2828 branch: Proxy(id),
29+ channel: Value(undefined),
2930 recps: Value(undefined)
3031 })
3132
3233 var compose = api.message.html.compose({
@@ -47,8 +48,9 @@
4748
4849 var isReply = !!value.content.root
4950 var thread = api.feed.obs.thread(id, {branch: isReply})
5051
52+ meta.channel.set(value.content.channel)
5153 meta.root.set(thread.rootId)
5254
5355 // if root thread, reply to last post
5456 meta.branch.set(isReply ? thread.branchId : thread.lastId)

Built with git-ssb-web