Fix sync_device_test

This commit is contained in:
Vitaliy Vlasov 2023-02-17 11:53:54 +02:00
parent 83a6dbfa3e
commit 2f41034b47

View File

@ -1927,7 +1927,7 @@ func (m *Messenger) handleSyncSetting(messageState *ReceivedMessageState, messag
return err
}
if message.GetType() == protobuf.SyncSetting_DISPLAY_NAME && settingField != nil {
if m.account.Name != message.GetValueString() {
if message.GetValueString() != "" && m.account.Name != message.GetValueString() {
m.account.Name = message.GetValueString()
err = m.multiAccounts.SaveAccount(*m.account)
if err != nil {