From 4365e83028c4ce0f2fa4518ef0a3f3cef4ae34f9 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 24 Apr 2015 11:36:33 -0300 Subject: [PATCH] filter out group aliases from listwalletusers --- js/twister_user.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/twister_user.js b/js/twister_user.js index 8acd60b..002a51c 100644 --- a/js/twister_user.js +++ b/js/twister_user.js @@ -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) {