@ -60,7 +60,7 @@ public struct Profile: Codable, Identifiable, Equatable, Hashable, FetchableReco
public let blocksCommunityMessageRequests : Bool ?
// / T h e t i m e s t a m p ( i n s e c o n d s s i n c e e p o c h ) t h a t t h e ` b l o c k s C o m m u n i t y M e s s a g e R e q u e s t s ` s e t t i n g w a s l a s t u p d a t e d
public let lastBlocksCommunityMessageRequests : TimeInterval
public let lastBlocksCommunityMessageRequests : TimeInterval ?
// MARK: - I n i t i a l i z a t i o n
@ -74,7 +74,7 @@ public struct Profile: Codable, Identifiable, Equatable, Hashable, FetchableReco
profileEncryptionKey : Data ? = nil ,
lastProfilePictureUpdate : TimeInterval ,
blocksCommunityMessageRequests : Bool ? = nil ,
lastBlocksCommunityMessageRequests : TimeInterval
lastBlocksCommunityMessageRequests : TimeInterval ? = nil
) {
self . id = id
self . name = name
@ -129,7 +129,7 @@ public extension Profile {
profileEncryptionKey : profileKey ,
lastProfilePictureUpdate : try container . decode ( TimeInterval . self , forKey : . lastProfilePictureUpdate ) ,
blocksCommunityMessageRequests : try ? container . decode ( Bool . self , forKey : . blocksCommunityMessageRequests ) ,
lastBlocksCommunityMessageRequests : try container . decode ( TimeInterval . self , forKey : . lastBlocksCommunityMessageRequests )
lastBlocksCommunityMessageRequests : try ? container . decode ( TimeInterval . self , forKey : . lastBlocksCommunityMessageRequests )
)
}
@ -145,7 +145,7 @@ public extension Profile {
try container . encodeIfPresent ( profileEncryptionKey , forKey : . profileEncryptionKey )
try container . encode ( lastProfilePictureUpdate , forKey : . lastProfilePictureUpdate )
try container . encodeIfPresent ( blocksCommunityMessageRequests , forKey : . blocksCommunityMessageRequests )
try container . encode ( lastBlocksCommunityMessageRequests , forKey : . lastBlocksCommunityMessageRequests )
try container . encode IfPresent ( lastBlocksCommunityMessageRequests , forKey : . lastBlocksCommunityMessageRequests )
}
}
@ -263,7 +263,7 @@ public extension Profile {
profileEncryptionKey : nil ,
lastProfilePictureUpdate : 0 ,
blocksCommunityMessageRequests : nil ,
lastBlocksCommunityMessageRequests : 0
lastBlocksCommunityMessageRequests : nil
)
}