1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-02 16:50:07 +01:00

fix search group member

This commit is contained in:
Riko Sakurauchi 2020-01-23 23:58:23 +08:00
parent 2b3c6e1ba5
commit a0ff6cf9f7
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF

View File

@ -560,7 +560,7 @@ public class ChatUsersActivity extends BaseFragment implements NotificationCente
}
}
});
if (ChatObject.hasAdminRights(currentChat) && (selectType != 0 || type == TYPE_USERS || type == TYPE_BANNED || type == TYPE_KICKED)) {
if (selectType != 0 || type == TYPE_USERS || ChatObject.hasAdminRights(currentChat) && (type == TYPE_BANNED || type == TYPE_KICKED)) {
searchListViewAdapter = new SearchAdapter(context);
ActionBarMenu menu = actionBar.createMenu();
searchItem = menu.addItem(search_button, R.drawable.ic_ab_search).setIsSearchField(true).setActionBarMenuItemSearchListener(new ActionBarMenuItem.ActionBarMenuItemSearchListener() {