Fix multi account commands for newly created accounts

Fixes #913
This commit is contained in:
AsamK 2022-03-17 21:45:30 +01:00
parent 942999b7b4
commit 0686fd8e68

View file

@ -49,7 +49,7 @@ public class SignalAccountFiles {
public MultiAccountManager initMultiAccountManager() {
final var managers = accountsStore.getAllAccounts().parallelStream().map(a -> {
try {
return initManager(a.path());
return initManager(a.number(), a.path());
} catch (NotRegisteredException | IOException | AccountCheckException e) {
logger.warn("Ignoring {}: {} ({})", a.number(), e.getMessage(), e.getClass().getSimpleName());
return null;