From b75c3e6577b1bdc0c9b62bf645718ce20927219e Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Sat, 19 Aug 2023 12:04:49 +0300 Subject: [PATCH] force accept imported events --- src/js/views/settings/Backup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/views/settings/Backup.tsx b/src/js/views/settings/Backup.tsx index 1bb398bd4..d83dc9424 100644 --- a/src/js/views/settings/Backup.tsx +++ b/src/js/views/settings/Backup.tsx @@ -140,7 +140,10 @@ const Backup = () => { if (!event.sig) { continue; // we don't want to sign & publish unsigned events } - Events.publish(event); + requestAnimationFrame(() => { + Events.handle(event, true); + Events.publish(event); + }); const myPub = Key.getPubKey(); // even if it's an old contacts event by us, restore follows from it if (event.pubkey === myPub && event.kind === 3) {