diff --git a/Sources/StreamChat/Database/DTOs/MemberModelDTO.swift b/Sources/StreamChat/Database/DTOs/MemberModelDTO.swift index 0a643eeaee..c4b6220b6d 100644 --- a/Sources/StreamChat/Database/DTOs/MemberModelDTO.swift +++ b/Sources/StreamChat/Database/DTOs/MemberModelDTO.swift @@ -131,7 +131,7 @@ extension NSManagedObjectContext { dto.notificationsMuted = payload.notificationsMuted if let extraData = payload.extraData { - dto.extraData = try? JSONEncoder.default.encode(payload.extraData) + dto.extraData = try? JSONEncoder.default.encode(extraData) } if let query = query {