cleanup
This commit is contained in:
parent
c8bcb39865
commit
a4f4475682
|
@ -30,7 +30,7 @@
|
||||||
noEdit = message.summarized
|
noEdit = message.summarized
|
||||||
})
|
})
|
||||||
|
|
||||||
function edit (msgid) {
|
const edit = (msgid) => {
|
||||||
if (noEdit) return
|
if (noEdit) return
|
||||||
editing = true
|
editing = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -40,12 +40,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
let dbnc
|
let dbnc
|
||||||
function update () {
|
const update = () => {
|
||||||
clearTimeout(dbnc)
|
clearTimeout(dbnc)
|
||||||
dbnc = setTimeout(() => { doChange() }, 250)
|
dbnc = setTimeout(() => { doChange() }, 250)
|
||||||
}
|
}
|
||||||
|
|
||||||
function doChange () {
|
const doChange = () => {
|
||||||
if (message.content !== original) {
|
if (message.content !== original) {
|
||||||
dispatch('change', message)
|
dispatch('change', message)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue