added in sort to put phone users at the bottom of the list
This commit is contained in:
parent
a847250cb3
commit
0920742ae9
@ -51,8 +51,6 @@ package org.bigbluebutton.main.model.users {
|
||||
|
||||
// Custom sort function for the users ArrayCollection. Need to put dial-in users at the very bottom.
|
||||
private function sortFunction(a:Object, b:Object, array:Array = null):int {
|
||||
var au:BBBUser = a as BBBUser;
|
||||
var bu:BBBUser = b as BBBUser;
|
||||
if (a.presenter)
|
||||
return -1;
|
||||
else if (b.presenter)
|
||||
@ -69,6 +67,12 @@ package org.bigbluebutton.main.model.users {
|
||||
return -1;
|
||||
else if (b.raiseHand)
|
||||
return 1;
|
||||
else if (a.phoneUser && b.phoneUser) {
|
||||
|
||||
} else if (a.phoneUser)
|
||||
return -1;
|
||||
else if (b.phoneUser)
|
||||
return 1;
|
||||
|
||||
/*
|
||||
* Check name (case-insensitive) in the event of a tie up above. If the name
|
||||
|
Loading…
Reference in New Issue
Block a user