fix_: Remove rpc client from push notification servers and avoid panic
This commit is contained in:
parent
ba04237972
commit
116fda7461
|
@ -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()),
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue