Merge branch 'peerAdd' of dan/cwtch into master
the build was successful 详情

这个提交包含在:
Sarah Jamie Lewis 2019-11-05 14:33:35 -08:00 提交者 Gogs
当前提交 87a0265142
共有 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}))
}