git ssb

16+

Dominic / patchbay



Commit 1445c8065b8c93c516ef1df601881a70c5201081

Auto fill channel for replies

Bradley Donahue committed on 2/5/2017, 7:12:34 PM
Parent: 558b11e7e152891f436d17180335e54c3701aa6b

Files changed

modules_basic/thread.jschanged
modules_basic/thread.jsView
@@ -101,8 +101,14 @@
101101 meta.branch = branches.length > 1 ? branches : branches[0]
102102 meta.root = thread[0].value.content.root || thread[0].key
103103 meta.channel = thread[0].value.content.channel
104104
105 + if (meta.channel) {
106 + const channelInput = composer.querySelector('input')
107 + channelInput.value = `#${meta.channel}`
108 + channelInput.disabled = true
109 + }
110 +
105111 var recps = thread[0].value.content.recps
106112 var priv = thread[0].value['private']
107113 if(priv) {
108114 if(recps)

Built with git-ssb-web