Copy this so we can mutate

Stephen Paul Weber created

Change summary

src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java 🔗

@@ -130,7 +130,7 @@ public class QuickConversationsService extends AbstractQuickConversationsService
         mRunningSyncJobs.incrementAndGet();
 
         mLastSyncAttempt.put(account.getUuid(), Attempt.create(hash));
-        final List<Contact> withSystemAccounts = account.getRoster().getWithSystemAccounts(PhoneNumberContact.class);
+        final List<Contact> withSystemAccounts = new ArrayList<>(account.getRoster().getWithSystemAccounts(PhoneNumberContact.class));
         for (Map.Entry<String, PhoneNumberContact> item : contacts.entrySet()) {
             PhoneNumberContact phoneContact = item.getValue();
             for(String gateway : gateways) {