Commit d72f1769d24688deeb9c8305757bc31331906b03
make sure to include name of recp when replying
Ev Bogue committed on 6/16/2018, 8:54:58 PMParent: 3f809c555254ca33f810cd592c5bee5ec9dafb2b
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -117,13 +117,15 @@ | ||
117 | 117 | } |
118 | 118 | }) |
119 | 119 | ) |
120 | 120 | |
121 | + var name = avatar.name(msg.value.author) | |
122 | + | |
121 | 123 | var buttons = h('div.buttons') |
122 | 124 | buttons.appendChild(h('button.btn', 'Reply', { |
123 | 125 | onclick: function () { |
124 | 126 | opts.type = 'post' |
125 | - opts.mentions = '[' + avatar.name(msg.value.author).textContent + '](' + msg.value.author + ')' | |
127 | + opts.mentions = '[' + name.textContent + '](' + msg.value.author + ')' | |
126 | 128 | if (msg.value.content.recps) { |
127 | 129 | opts.recps = msg.value.content.recps |
128 | 130 | } |
129 | 131 | var r = message.childNodes.length - 1 |
Built with git-ssb-web