mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
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:
commit
e222753aac
2 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -862,6 +862,9 @@ function avatarDisconnected(nodeID) {
|
|||
|
||||
function clearLocalQMLDataAndClosePAL() {
|
||||
sendToQml({ method: 'clearLocalQMLData' });
|
||||
if (onPalScreen) {
|
||||
tablet.gotoHomeScreen();
|
||||
}
|
||||
}
|
||||
|
||||
function avatarAdded(avatarID) {
|
||||
|
|
Loading…
Reference in a new issue