Prefer public.profile.name - ensure that it is consistent with local.profile.name. #398

Merged
sarah merged 3 commits from publicnameprefer into master 2021-10-27 16:23:53 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 4859a90d02 - Show all commits

View File

@ -16,7 +16,7 @@ func WaitGetPeer(app app2.Application, name string) peer.CwtchPeer {
for {
for _, handle := range app.ListProfiles() {
peer := app.GetPeer(handle)
localName, _ := peer.GetScopedZonedAttribute(attr.LocalScope, attr.ProfileZone, constants.Name)
localName, _ := peer.GetScopedZonedAttribute(attr.PublicScope, attr.ProfileZone, constants.Name)
if localName == name {
return peer
}