Saving Blocked Peer Status

This commit is contained in:
Sarah Jamie Lewis 2019-08-06 18:25:38 -07:00
parent f08af1289f
commit f64d7ab1ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni

Vedi File

@ -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()