From 793c13355144a5bfa1a68b30b447a879c992dbb2 Mon Sep 17 00:00:00 2001 From: Flemmli97 <34157027+Flemmli97@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:01:07 +0200 Subject: [PATCH] fix(multipass): add missing multipass event (#695) --- src/lib/wasm/MultipassStore.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/wasm/MultipassStore.ts b/src/lib/wasm/MultipassStore.ts index b9f756623..f1d5ff927 100644 --- a/src/lib/wasm/MultipassStore.ts +++ b/src/lib/wasm/MultipassStore.ts @@ -108,10 +108,22 @@ class MultipassStore { await this.listFriends() break } - case wasm.MultiPassEventKindEnum.Blocked: { + case wasm.MultiPassEventKindEnum.Blocked: + case wasm.MultiPassEventKindEnum.BlockedBy: + case wasm.MultiPassEventKindEnum.Unblocked: + case wasm.MultiPassEventKindEnum.UnblockedBy: { await this.listBlockedFriends() break } + case wasm.MultiPassEventKindEnum.IdentityOnline: + case wasm.MultiPassEventKindEnum.IdentityOffline: + case wasm.MultiPassEventKindEnum.IdentityUpdate: { + let user = await this.identity_from_did(event.did) + if (user) { + Store.updateUser(user) + } + break + } default: { log.error(`Unhandled message event: ${wasm.MultiPassEventKindEnum[event.kind]}`) break