diff --git a/SharedAssets.xcassets/Blurhash.imageset/Blurhash.png b/SharedAssets.xcassets/Blurhash.imageset/Blurhash.png index 32439ad..2490e53 100644 Binary files a/SharedAssets.xcassets/Blurhash.imageset/Blurhash.png and b/SharedAssets.xcassets/Blurhash.imageset/Blurhash.png differ diff --git a/SharedAssets.xcassets/Blurhash.imageset/Blurhash@2x.png b/SharedAssets.xcassets/Blurhash.imageset/Blurhash@2x.png index 2904958..033298f 100644 Binary files a/SharedAssets.xcassets/Blurhash.imageset/Blurhash@2x.png and b/SharedAssets.xcassets/Blurhash.imageset/Blurhash@2x.png differ diff --git a/SharedAssets.xcassets/Blurhash.imageset/Blurhash@3x.png b/SharedAssets.xcassets/Blurhash.imageset/Blurhash@3x.png index 736dc55..70bf3dd 100644 Binary files a/SharedAssets.xcassets/Blurhash.imageset/Blurhash@3x.png and b/SharedAssets.xcassets/Blurhash.imageset/Blurhash@3x.png differ diff --git a/Vernissage.xcodeproj/project.pbxproj b/Vernissage.xcodeproj/project.pbxproj index 8de38c0..7116298 100644 --- a/Vernissage.xcodeproj/project.pbxproj +++ b/Vernissage.xcodeproj/project.pbxproj @@ -1177,7 +1177,7 @@ CODE_SIGN_ENTITLEMENTS = VernissageWidget/VernissageWidgetExtension.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageWidget/Info.plist; @@ -1205,7 +1205,7 @@ ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; CODE_SIGN_ENTITLEMENTS = VernissageWidget/VernissageWidgetExtension.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageWidget/Info.plist; @@ -1232,7 +1232,7 @@ CODE_SIGN_ENTITLEMENTS = VernissageShare/VernissageShareExtension.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageShare/Info.plist; @@ -1259,7 +1259,7 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = VernissageShare/VernissageShareExtension.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_TEAM = B2U9FEKYP8; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = VernissageShare/Info.plist; @@ -1408,7 +1408,7 @@ CODE_SIGN_ENTITLEMENTS = Vernissage/Vernissage.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\""; DEVELOPMENT_TEAM = B2U9FEKYP8; ENABLE_PREVIEWS = YES; @@ -1448,7 +1448,7 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; CODE_SIGN_ENTITLEMENTS = Vernissage/Vernissage.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 111; + CURRENT_PROJECT_VERSION = 112; DEVELOPMENT_ASSET_PATHS = "\"Vernissage/Preview Content\""; DEVELOPMENT_TEAM = B2U9FEKYP8; ENABLE_PREVIEWS = YES; diff --git a/Vernissage/Services/HomeTimelineService.swift b/Vernissage/Services/HomeTimelineService.swift index 9b3d5c5..da8f6ed 100644 --- a/Vernissage/Services/HomeTimelineService.swift +++ b/Vernissage/Services/HomeTimelineService.swift @@ -153,6 +153,13 @@ public class HomeTimelineService { StatusDataHandler.shared.remove(accountId: account.id, statuses: dbStatusesToRemove) } + // Update existing one. + for dbStatus in dbStatuses { + if let status = statuses.first(where: { item in item.id == dbStatus.id}) { + dbStatus.favourited = status.favourited + } + } + // Add statuses which are not existing in database, but has been downloaded via API. var statusesToAdd: [Status] = [] for status in statuses where !dbStatuses.contains(where: { statusData in statusData.id == status.id }) {