forked from cwtch.im/cwtch
Saving Blocked Peer Status
This commit is contained in:
parent
f08af1289f
commit
f64d7ab1ed
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue