bug: fix crash with migration on login (MESSENGER-7565)

This commit is contained in:
Frank Rotermund
2025-09-29 14:33:54 +02:00
parent ed99cc5ad4
commit e967024d96

View File

@@ -26,7 +26,7 @@ import MatrixSDK
var returnValue = false
if let username = session.myUser.username() {
if let username = session.myUser?.username() {
let ossStatus = SharedKeychain.save(account: "migration_username", value: String(username))
returnValue = ossStatus == errSecSuccess
}