mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fix an issue where linking a device will remove the username on main device
This commit is contained in:
parent
a14b2c0960
commit
751eb8ce66
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ public enum MessageReceiver {
|
|||
var updatedProfile: Profile = profile
|
||||
|
||||
// Name
|
||||
if let name = name, name != profile.name {
|
||||
if let name = name, !name.isEmpty, name != profile.name {
|
||||
let shouldUpdate: Bool
|
||||
if isCurrentUser {
|
||||
shouldUpdate = given(UserDefaults.standard[.lastDisplayNameUpdate]) {
|
||||
|
|
Loading…
Reference in a new issue