-
Notifications
You must be signed in to change notification settings - Fork 128
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
Feature/agents online #110
Conversation
ios/RNZendeskChatModule.m
Outdated
(RCTPromiseResolveBlock) resolve | ||
rejecter: (RCTPromiseRejectBlock) reject) { | ||
|
||
[ZDKChat.accountProvider getAccout:^(ZDKChatAccount *account, NSError *error) { |
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.
Is there a typo here?
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.
yes, looks like it is
034660d
to
1409b17
Compare
@fbartho Tested on iOS and it works :) |
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.
This code looks pretty good, and I'll try to integrate it!
rejecter: (RCTPromiseRejectBlock) reject) { | ||
|
||
[ZDKChat.accountProvider getAccount:^(ZDKChatAccount *account, NSError *error) { | ||
if (account) { |
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.
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) { |
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.
No import for Promise, resulting in compliation error in android, Please fix it, you cant use Promise
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
Oh! Maybe it’s not. I’ll take a look tomorrow. We had some build issues due to jitpack.io being offline yesterday.
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.
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
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.
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.
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.
Beta.9 passed compilation, so I'm shipping 0.4.1! -- If you find bugs, please report them.
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.
Nice work @fbartho !!
No description provided.