mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 13:33:38 +02:00
Set admin status even if QML can't find user in PAL
This commit is contained in:
parent
e2f6ad8306
commit
ee9cdaff90
1 changed files with 1 additions and 1 deletions
|
@ -1099,9 +1099,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 {
|
||||
|
|
Loading…
Reference in a new issue