if no remote name, reask #61

Merged
sarah merged 2 commits from getNameAfterApproved into trunk 2021-06-18 00:23:09 +00:00
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