Skip to content

Commit

Permalink
Fix complications not updating in 2021.12 (#1977)
Browse files Browse the repository at this point in the history
Fixes #1955.

## Summary
We were not updating any complications watch-side, so any updates exclusively came from the iOS app's updating them.

## Any other notes
Complications weren't syncing over to the watch with their serverIdentifier value set, so when we went to update none of the API instances thought their server had any complications needing updating.
  • Loading branch information
zacwest authored Dec 7, 2021
1 parent 06f65be commit b465c94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Shared/API/Models/WatchComplication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public class WatchComplication: Object, ImmutableMappable {
self.identifier = try map.value("identifier")
self.name = try map.value("name")
self.IsPublic = try map.value("IsPublic")
self.serverIdentifier = try map.value("serverIdentifier")
}

public func mapping(map: ObjectMapper.Map) {
Expand All @@ -104,6 +105,7 @@ public class WatchComplication: Object, ImmutableMappable {
identifier >>> map["identifier"]
name >>> map["name"]
IsPublic >>> map["IsPublic"]
serverIdentifier >>> map["serverIdentifier"]
}

enum RenderedValueType: Hashable {
Expand Down

0 comments on commit b465c94

Please sign in to comment.