mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Clicking on a user in the goto menu was taking one to the wrong user
This commit is contained in:
parent
af055bb45c
commit
6b05f7b030
1 changed files with 6 additions and 5 deletions
|
@ -580,10 +580,10 @@ function updateLabels(serverState) {
|
||||||
labels.people.submenu.push({
|
labels.people.submenu.push({
|
||||||
label: name,
|
label: name,
|
||||||
enabled: (onlineUsers[name].location != undefined),
|
enabled: (onlineUsers[name].location != undefined),
|
||||||
click: function () {
|
click: function (item) {
|
||||||
setNotificationState(HifiNotificationType.PEOPLE, false);
|
setNotificationState(HifiNotificationType.PEOPLE, false);
|
||||||
if(onlineUsers[name] && onlineUsers[name].location) {
|
if(onlineUsers[item.label] && onlineUsers[item.label].location) {
|
||||||
StartInterface("hifi://" + onlineUsers[name].location.root.name + onlineUsers[name].location.path);
|
StartInterface("hifi://" + onlineUsers[item.label].location.root.name + onlineUsers[item.label].location.path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -598,9 +598,10 @@ function updateLabels(serverState) {
|
||||||
}
|
}
|
||||||
labels.goto.submenu.push({
|
labels.goto.submenu.push({
|
||||||
label: "event in " + location,
|
label: "event in " + location,
|
||||||
click: function () {
|
location: location,
|
||||||
|
click: function (item) {
|
||||||
setNotificationState(HifiNotificationType.GOTO, false);
|
setNotificationState(HifiNotificationType.GOTO, false);
|
||||||
StartInterface("hifi://" + location + currentStories[location].path);
|
StartInterface("hifi://" + item.location + currentStories[item.location].path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue