Skip to content

Feature/agents online #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 4, 2021

Conversation

gabrielperales
Copy link
Contributor

No description provided.

@gabrielperales gabrielperales changed the base branch from main to release/v0.4.1 March 30, 2021 16:15
(RCTPromiseResolveBlock) resolve
rejecter: (RCTPromiseRejectBlock) reject) {

[ZDKChat.accountProvider getAccout:^(ZDKChatAccount *account, NSError *error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a typo here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, looks like it is

@gabrielperales
Copy link
Contributor Author

@fbartho Tested on iOS and it works :)

Copy link
Contributor

@fbartho fbartho left a comment

Choose a reason for hiding this comment

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

This code looks pretty good, and I'll try to integrate it!

@fbartho fbartho merged commit 6e4c7dd into taskrabbit:release/v0.4.1 May 4, 2021
rejecter: (RCTPromiseRejectBlock) reject) {

[ZDKChat.accountProvider getAccount:^(ZDKChatAccount *account, NSError *error) {
if (account) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is no account, this promise never resolves.

I'm going to add a code-snippet to reject in that situation.

@@ -377,4 +378,29 @@ public void update(ChatState chatState) {
}
});
}

@ReactMethod
public void areAgentsOnline(Promise promise) {
Copy link

@moorjaniNitesh95 moorjaniNitesh95 May 5, 2021

Choose a reason for hiding this comment

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

No import for Promise, resulting in compliation error in android, Please fix it, you cant use Promise

This comment was marked as outdated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh! Maybe it’s not. I’ll take a look tomorrow. We had some build issues due to jitpack.io being offline yesterday.

Choose a reason for hiding this comment

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

yes its not and after npm install 0.4.1-beta.8 is getting installed and causing build error, you need to fix this, in a new PR

Copy link
Contributor

Choose a reason for hiding this comment

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

Active fixes for 0.4.1 can be found in #85 -- 0.4.1-beta.9 is published and now building in our CI. If further fixes are needed, I'll publish more betas until it seems ready.

Copy link
Contributor

Choose a reason for hiding this comment

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

Beta.9 passed compilation, so I'm shipping 0.4.1! -- If you find bugs, please report them.

Choose a reason for hiding this comment

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

Nice work @fbartho !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants