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.WithWalletDatabase(walletDB),
|
||||||
protocol.WithTorrentConfig(&config.TorrentConfig),
|
protocol.WithTorrentConfig(&config.TorrentConfig),
|
||||||
protocol.WithWalletConfig(&config.WalletConfig),
|
protocol.WithWalletConfig(&config.WalletConfig),
|
||||||
protocol.WithRPCClient(backend.StatusNode().RPCClient()),
|
|
||||||
protocol.WithAccountManager(backend.AccountManager()),
|
protocol.WithAccountManager(backend.AccountManager()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -429,6 +429,10 @@ func (m *Messenger) backupProfile(ctx context.Context, clock uint64) ([]*protobu
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if m.account == nil {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
keyUID := m.account.KeyUID
|
keyUID := m.account.KeyUID
|
||||||
images, err := m.multiAccounts.GetIdentityImages(keyUID)
|
images, err := m.multiAccounts.GetIdentityImages(keyUID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue