Commit 1445c8065b8c93c516ef1df601881a70c5201081
Auto fill channel for replies
Bradley Donahue committed on 2/5/2017, 7:12:34 PMParent: 558b11e7e152891f436d17180335e54c3701aa6b
Files changed
modules_basic/thread.js | changed |
modules_basic/thread.js | |||
---|---|---|---|
@@ -101,8 +101,14 @@ | |||
101 | 101 … | meta.branch = branches.length > 1 ? branches : branches[0] | |
102 | 102 … | meta.root = thread[0].value.content.root || thread[0].key | |
103 | 103 … | meta.channel = thread[0].value.content.channel | |
104 | 104 … | ||
105 … | + if (meta.channel) { | ||
106 … | + const channelInput = composer.querySelector('input') | ||
107 … | + channelInput.value = `#${meta.channel}` | ||
108 … | + channelInput.disabled = true | ||
109 … | + } | ||
110 … | + | ||
105 | 111 … | var recps = thread[0].value.content.recps | |
106 | 112 … | var priv = thread[0].value['private'] | |
107 | 113 … | if(priv) { | |
108 | 114 … | if(recps) |
Built with git-ssb-web