Skip to content

Commit

Permalink
Fix for syncing comment reactions with -from
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsochantaris committed Aug 3, 2018
1 parent eb15bbc commit 1dfdea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/trailer/Core/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct Config {

let versionMajor = 1
let versionMinor = 0
let versionPatch = 7
let versionPatch = 8
var versionString: String {
return [versionMajor, versionMinor, versionPatch].map { String($0) }.joined(separator: ".")
}
Expand Down
5 changes: 5 additions & 0 deletions Sources/trailer/Data/Models/Comment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ struct Comment: Item, Announceable {
u.setSyncStatus(status, andChildren: true)
User.allItems[u.id] = u
}
for c in reactions {
var C = c
C.setSyncStatus(status, andChildren: true)
Reaction.allItems[c.id] = C
}
}

static let commentFields: [Element] = [
Expand Down

0 comments on commit 1dfdea9

Please sign in to comment.