Saving Blocked Peer Status

This commit is contained in:
Sarah Jamie Lewis 2019-08-06 18:25:38 -07:00
vecāks f08af1289f
revīzija f64d7ab1ed
1 mainīti faili ar 1 papildinājumiem un 1 dzēšanām

Parādīt failu

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