mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +03:00
Fix a bug with index out of bounds
This commit is contained in:
parent
e5ba9cde8f
commit
20e1515b74
1 changed files with 3 additions and 1 deletions
|
@ -514,7 +514,9 @@ public class OperationsMenuController extends BaseController {
|
|||
RetrofitBucket retrofitBucket;
|
||||
final ArrayList<String> localInvitedUsers = invitedUsers;
|
||||
final ArrayList<String> localInvitedGroups = invitedGroups;
|
||||
localInvitedGroups.remove(0);
|
||||
if (localInvitedGroups.size() > 0) {
|
||||
localInvitedGroups.remove(0);
|
||||
}
|
||||
if (localInvitedUsers.size() > 0 || (localInvitedGroups.size() > 0 && currentUser.hasSpreedCapabilityWithName("invite-groups-and-mails"))) {
|
||||
if ((localInvitedGroups.size() > 0 && currentUser.hasSpreedCapabilityWithName("invite-groups-and-mails"))) {
|
||||
for (int i = 0; i < localInvitedGroups.size(); i++) {
|
||||
|
|
Loading…
Reference in a new issue