Use commentron instead of Comment SDK calls #1149
No reviewers
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#1149
Loading…
Reference in a new issue
No description provided.
Delete branch "interacting-comment-servers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Checklist
Please check all that apply to this PR using "x":
PR Type
What kind of change does this PR introduce?
Fixes
Issue Number: #1131
What is the current behavior?
Any action related to comments is performed through SDK
What is the new behavior?
App uses SDK only to sign parameters with the channel private key. Everything is performed by making requests directly to Comment Server -aka Commentron-.
Other information
Currently app is lacking the capability of removing or editing comments. That features has not been added on this PR.
A new
Comments
class has been added on the utils package; it will act as a 'Helper'.From the issue description, it seems that the user could change the server it wanted to use for commenting, so a generic performRequest() is included, but it is currently been called with the default server as a parameter.
Just one minor change. Everything else looks good.
I think you can just use the current timestamp as the id here. Although we're not tracing request JSON RPC request IDs at the moment, we may want to in the future.
Changed in the new commit