tie peerWithOnion to AddContact
the build was successful 詳細

このコミットが含まれているのは:
Dan Ballard 2019-11-05 14:15:56 -08:00
コミット 514d25c365
1個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -211,6 +211,9 @@ func (cp *cwtchPeer) GetGroupState(groupid string) connections.ConnectionState {
// PeerWithOnion is the entry point for cwtchPeer relationships
func (cp *cwtchPeer) PeerWithOnion(onion string) {
if _, exists := cp.Profile.GetContact(onion); !exists {
cp.AddContact(onion, onion, false)
}
cp.eventBus.Publish(event.NewEvent(event.PeerRequest, map[event.Field]string{event.RemotePeer: onion}))
}