git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit e39458cf79ac14e9ae06c78494db0453c35f8f9b

whoops, don't delete message when cancelling preview

Matt McKegg committed on 10/18/2017, 2:58:10 AM
Parent: 439b2fd655c4e2b043b509caf646206a3e60f528

Files changed

modules/message/html/compose.jschanged
modules/message/html/compose.jsView
@@ -144,9 +144,9 @@
144144 }
145145 // TODO: when no emoji typed, list some default ones
146146 cb(null, api.emoji.sync.names().filter(function (name) {
147147 return name.slice(0, word.length) === word
148- }).map(function (emoji) {
148+ }).slice(0, 100).map(function (emoji) {
149149 return {
150150 image: api.emoji.sync.url(emoji),
151151 title: emoji,
152152 subtitle: emoji,
@@ -199,9 +199,9 @@
199199 detail: err.message
200200 })
201201 }
202202 } else {
203- textArea.value = ''
203+ if (msg) textArea.value = ''
204204 if (cb) cb(null, msg)
205205 }
206206 }
207207 }

Built with git-ssb-web