Ignore empty display names

pull/183/head
nielsandriesse 5 years ago
parent 1e797353d0
commit 7b221ca86e

@ -110,6 +110,7 @@ public final class SessionMetaProtocol : NSObject {
} else {
displayName = rawDisplayName
}
guard !displayName.isEmpty else { return }
let profileManager = SSKEnvironment.shared.profileManager
profileManager.updateProfileForContact(withID: hexEncodedPublicKey, displayName: displayName, with: transaction)
}

Loading…
Cancel
Save