if no remote name, reask
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2021-06-17 17:05:07 -07:00
parent c6f1c4d0f9
commit e2cf1d25e3
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ func (p *PeerHelper) GetNick(id string) string {
nick, exists = p.peer.GetContactAttribute(id, attr.GetPeerScope(constants.Name))
if !exists {
nick = "[" + id + "]"
// re-request
p.peer.SendGetValToPeer(id, attr.PublicScope, constants.Name)
}
}
return nick