Skip to content

Commit

Permalink
fix(DriveUser): Remove deprecated avatarUrl (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye authored Feb 25, 2025
2 parents 97d72c1 + 848db39 commit 831f253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public extension Results where Element: KeypathSortable {
public final class DriveInfosManager: DriveInfosManagerQueryable {
private static let dbName = "DrivesInfos.realm"

private static let currentDbVersion: UInt64 = 12
private static let currentDbVersion: UInt64 = 13

let currentFpStorageVersion = 1

Expand Down
4 changes: 1 addition & 3 deletions kDriveCore/Data/Models/DriveUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,17 @@ public final class DriveUser: Object, Codable, InfomaniakUser {
@Persisted(primaryKey: true) public var id = UUID().uuidString.hashValue
@Persisted public var email = ""
@Persisted private var _avatar: String?
@Persisted private var _avatarUrl: String?
@Persisted public var displayName = ""
public var role: DriveUserRole?

public var avatar: String? {
_avatarUrl
_avatar
}

enum CodingKeys: String, CodingKey {
case id
case email
case _avatar = "avatar"
case _avatarUrl = "avatarUrl"
case displayName
case role
}
Expand Down

0 comments on commit 831f253

Please sign in to comment.