fix_: Remove rpc client from push notification servers and avoid panic

This commit is contained in:
Andrea Maria Piana 2024-03-21 17:35:24 +00:00
parent ba04237972
commit 116fda7461
2 changed files with 4 additions and 1 deletions

View File

@ -231,7 +231,6 @@ func main() {
protocol.WithWalletDatabase(walletDB),
protocol.WithTorrentConfig(&config.TorrentConfig),
protocol.WithWalletConfig(&config.WalletConfig),
protocol.WithRPCClient(backend.StatusNode().RPCClient()),
protocol.WithAccountManager(backend.AccountManager()),
}

View File

@ -429,6 +429,10 @@ func (m *Messenger) backupProfile(ctx context.Context, clock uint64) ([]*protobu
return nil, err
}
if m.account == nil {
return nil, nil
}
keyUID := m.account.KeyUID
images, err := m.multiAccounts.GetIdentityImages(keyUID)
if err != nil {