Skip to content

Commit

Permalink
fix(multipass): add missing multipass event (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 authored Oct 14, 2024
1 parent abe6c2b commit 793c133
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/lib/wasm/MultipassStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 793c133

Please sign in to comment.