From 2f41034b47d67eacc9002043b451962a45dd93ba Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Fri, 17 Feb 2023 11:53:54 +0200 Subject: [PATCH] Fix sync_device_test --- protocol/messenger_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index 53fc9f320..de15a64fc 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -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 {