diff --git a/src/lib/Amigxs.svelte b/src/lib/Amigxs.svelte index da6a5e3..3ba9c6e 100644 --- a/src/lib/Amigxs.svelte +++ b/src/lib/Amigxs.svelte @@ -34,6 +34,9 @@ $: id = `${myUser.room};${myUser.password}`; const copiar = () => navigator.clipboard.writeText(id); + + const remove = (id: UserIdentifier) => + ($friends = $friends.filter((i) => i.room !== id.room)); @@ -51,10 +54,13 @@