Skip to content

Commit

Permalink
Fixing some missing renames
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Radtke committed Jun 29, 2021
1 parent 20f4a7f commit 535484d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions windows/ReactNativeBlobUtil/ReactNativeBlobUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ IAsyncAction setTimeout(std::chrono::seconds time) {
co_await time;
}

winrt::fire_and_forget RNFetchBlob::fetchBlob(
winrt::fire_and_forget ReactNativeBlobUtilState::fetchBlob(
winrt::Microsoft::ReactNative::JSValueObject options,
std::string taskId,
std::string method,
Expand All @@ -1064,7 +1064,7 @@ winrt::fire_and_forget RNFetchBlob::fetchBlob(
{
filter.IgnorableServerCertificateErrors().Append(Cryptography::Certificates::ChainValidationResult::Untrusted);
}
RNFetchBlobState eventState;
ReactNativeBlobUtilState eventState;

winrt::Windows::Web::Http::HttpClient httpClient{ filter };

Expand Down Expand Up @@ -1217,7 +1217,7 @@ winrt::fire_and_forget RNFetchBlob::fetchBlob(
callback(error, "error", "");
}
else {
callback("RNFetchBlob request timed out", "error", "");
callback("React-native-blobl-util request timed out", "error", "");
}
}

Expand Down Expand Up @@ -1539,7 +1539,7 @@ try

winrt::Windows::Web::Http::HttpResponseMessage response{ co_await httpClient.SendRequestAsync(httpRequestMessage, winrt::Windows::Web::Http::HttpCompletionOption::ResponseHeadersRead) };

RNFetchBlobState eventState;
ReactNativeBlobUtilState eventState;

auto status{ static_cast<int>(response.StatusCode()) };
if (config.followRedirect) {
Expand All @@ -1564,7 +1564,7 @@ try

eventState.state = winrt::to_string(response.ReasonPhrase());

m_reactContext.CallJSFunction(L"RCTDeviceEventEmitter", L"emit", L"RNFetchBlobState",
m_reactContext.CallJSFunction(L"RCTDeviceEventEmitter", L"emit", L"ReactNativeBlobUtilState",
Microsoft::ReactNative::JSValueObject{
{ "taskId", taskId },
{ "state", eventState.state },
Expand Down

0 comments on commit 535484d

Please sign in to comment.