filter out group aliases from listwalletusers

This commit is contained in:
Miguel Freitas 2015-04-24 11:36:33 -03:00
parent 658cb76b15
commit 4365e83028

View File

@ -63,7 +63,13 @@ function incLastPostId( optionalNewValue ) {
function loadWalletlUsers(cbFunc, cbArg) {
twisterRpc("listwalletusers", [],
function(args, ret) {
localUsernames = ret;
localUsernames = [];
for( var i = 0; i < ret.length; i++ ) {
// filter out group aliases
if( ret.length && ret[i][0] !== '*' ) {
localUsernames.push(ret[i]);
}
}
args.cbFunc(args.cbArg);
}, {cbFunc:cbFunc, cbArg:cbArg},
function(args, ret) {