Merge pull request 'if no remote name, reask' (#61) from getNameAfterApproved into trunk
continuous-integration/drone/push Build is passing Details

Reviewed-on: #61
This commit is contained in:
Sarah Jamie Lewis 2021-06-17 17:23:08 -07:00
commit 0f53ae0062
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