forked from cwtch.im/cwtch
Merge branch 'tapir-peer' of cwtch.im/cwtch into master
This commit is contained in:
commit
2d72272127
|
@ -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