cmd/tailscale: prefer showing Sharer user over Owner user

Fixes tailscale/corp#14056
Updates tailscale/tailscale#8967

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
bradfitz/sharer_or_user
Brad Fitzpatrick 1 year ago
parent cb2e7da117
commit eacd5692c9

@ -1085,9 +1085,10 @@ func (a *App) updateState(act jni.Object, state *clientState) {
continue continue
} }
} }
users[p.User()] = struct{}{} uid := p.SharerOrUser()
users[uid] = struct{}{}
uiPeers = append(uiPeers, UIPeer{ uiPeers = append(uiPeers, UIPeer{
Owner: p.User(), Owner: uid,
Peer: p.AsStruct(), Peer: p.AsStruct(),
}) })
} }

Loading…
Cancel
Save