Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Node fixes #160

Merged
merged 5 commits into from
Jun 25, 2018
Merged

Node fixes #160

merged 5 commits into from
Jun 25, 2018

Conversation

asutula
Copy link
Member

@asutula asutula commented Jun 22, 2018

Just cleaning up how we interact with the JS node API, fixing a couple bugs. Started down the path of adding tests for the native layer node modules, but it's harder than I thought, will tackle it in another PR.

@asutula asutula mentioned this pull request Jun 22, 2018
@asutula asutula changed the title WIP: Node fixes Node fixes Jun 25, 2018
@asutula asutula requested a review from sanderpick June 25, 2018 13:47
@asutula
Copy link
Member Author

asutula commented Jun 25, 2018

Ok I think this is g2g. Will tackle native module testing in a new PR.

Copy link
Member

@sanderpick sanderpick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

way better dude, nice one

@@ -220,6 +203,7 @@ export function * pairNewDevice (action) {

export function * shareImage ({thread, hash, caption}) {
try {
// TODO: sharePhoto returns a String. Should we be using it?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the return string here is the newly created block id, we can remove that at some point because it doesn't seem useful since you just request all photos again

@@ -272,8 +277,7 @@ public void getFileData (String id, String path, Promise promise) {
@ReactMethod
public void pairDevice (String pkb64, Promise promise) {
try {
node.pairDevice(pkb64);
promise.resolve(true);
promise.resolve(node.pairDevice(pkb64));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

@sanderpick sanderpick merged commit ddc3a0c into master Jun 25, 2018
@sanderpick sanderpick deleted the asutula/textile-node-fixes branch June 25, 2018 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants