Merge pull request #10911 from zfox23/PAL_adminFix2

Set admin status even if QML can't find user in PAL
This commit is contained in:
Zach Fox 2017-07-07 10:24:53 -07:00 committed by GitHub
commit e222753aac
2 changed files with 4 additions and 1 deletions

View file

@ -1101,9 +1101,9 @@ Rectangle {
case 'nearbyUsers':
var data = message.params;
var index = -1;
iAmAdmin = Users.canKick;
index = findNearbySessionIndex('', data);
if (index !== -1) {
iAmAdmin = Users.canKick;
myData = data[index];
data.splice(index, 1);
} else {

View file

@ -862,6 +862,9 @@ function avatarDisconnected(nodeID) {
function clearLocalQMLDataAndClosePAL() {
sendToQml({ method: 'clearLocalQMLData' });
if (onPalScreen) {
tablet.gotoHomeScreen();
}
}
function avatarAdded(avatarID) {