From f64d7ab1ede533b0c6fdd53d2feba8fcee29ce77 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 6 Aug 2019 18:25:38 -0700 Subject: [PATCH] Saving Blocked Peer Status --- storage/profile_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/profile_store.go b/storage/profile_store.go index 78ec173..8234bc8 100644 --- a/storage/profile_store.go +++ b/storage/profile_store.go @@ -151,7 +151,7 @@ func (ps *profileStore) eventHandler() { ev := ps.queue.Next() switch ev.EventType { case event.BlockPeer: - contact, exists := ps.profile.GetContact(ev.Data["Onion"]) + contact, exists := ps.profile.GetContact(ev.Data[event.RemotePeer]) if exists { contact.Blocked = true ps.save()