Fix edit
This commit is contained in:
parent
764719afde
commit
d646ddd91d
1 changed files with 5 additions and 1 deletions
|
|
@ -121,7 +121,11 @@
|
||||||
if (eventToEdit) {
|
if (eventToEdit) {
|
||||||
// Delete previous message, to be republished with same timestamp
|
// Delete previous message, to be republished with same timestamp
|
||||||
template.created_at = eventToEdit.created_at
|
template.created_at = eventToEdit.created_at
|
||||||
publishDelete({relays: [url], event: eventToEdit, protect: await shouldProtect})
|
publishDelete({
|
||||||
|
relays: [url],
|
||||||
|
event: $state.snapshot(eventToEdit),
|
||||||
|
protect: await shouldProtect,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (share) {
|
if (share) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue