bug fix
This commit is contained in:
parent
c479d9a683
commit
28ac2974e8
1 changed files with 7 additions and 1 deletions
|
@ -1499,7 +1499,13 @@ class Channel extends SnowFlake {
|
||||||
|
|
||||||
const dont = document.createElement("button");
|
const dont = document.createElement("button");
|
||||||
dont.textContent = I18n.message.delete();
|
dont.textContent = I18n.message.delete();
|
||||||
dont.onclick = (_) => html.remove();
|
dont.onclick = (_) => {
|
||||||
|
this.fakeMessages = this.fakeMessages.filter((_) => _[0] !== m);
|
||||||
|
html.remove();
|
||||||
|
for (const {url} of m.attachments) {
|
||||||
|
URL.revokeObjectURL(url);
|
||||||
|
}
|
||||||
|
};
|
||||||
dont.style.marginLeft = "4px";
|
dont.style.marginLeft = "4px";
|
||||||
buttons.append(retryB, dont);
|
buttons.append(retryB, dont);
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue