1
0
Fork 1

Fix concurrent modification

(cherry picked from commit cff095a4891361c4b0fe26a1d6664b3c844b1f88)
This commit is contained in:
Stephen Paul Weber 2024-11-04 15:34:39 -05:00 committed by Arne
parent 5be58228a1
commit 0ce2a6d79c

View file

@ -114,8 +114,8 @@ public class QuickConversationsService extends AbstractQuickConversationsService
protected Set<String> gateways(final Account account) {
return Stream.concat(
account.getGateways("pstn").stream(),
account.getGateways("sms").stream()
ImmutableList.copyOf(account.getGateways("pstn")).stream(),
ImmutableList.copyOf(account.getGateways("sms")).stream()
).map(a -> a.getJid().asBareJid().toString()).collect(Collectors.toSet());
}