-
Notifications
You must be signed in to change notification settings - Fork 16
Add support for marking Reader posts seen/unseen #327
Conversation
aerych
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hola @ScoutHarris 👋
I had just one nitpick looking at the code.
Back to you!
| ] as [String: AnyObject] | ||
|
|
||
| wordPressComRestApi.POST(path, parameters: params, success: { (responseObject, httpResponse) in | ||
| success() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we should check what's returned in the response object. It should be a dictionary with a single key status. The value of status can be true or false depending on if the call succeeded. Looks like there are a few (unlikely) scenarios where false could be returned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. And done!
aerych
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ![]()
|
Thanks @aerych ! |
Description
Ref wordpress-mobile/WordPress-iOS#15355
WPiOS PR: wordpress-mobile/WordPress-iOS#15638
This adds functionality to toggle a post's
is_seenstatus.Testing Details
Can be tested with the referenced WPiOS PR.