Skip to content

Commit

Permalink
fix: HereNow issue with async- showing error: true even with status…
Browse files Browse the repository at this point in the history
… 200
  • Loading branch information
mohitpubnub committed Oct 30, 2024
1 parent f99f5a4 commit 0055eda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Api/PubnubApi/EndPoint/Presence/HereNowOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ internal async Task<PNResult<PNHereNowResult>> HereNow(string[] channels, string
PNStatus errorStatus = GetStatusIfError(requestState, responseString);
Tuple<string, PNStatus> JsonAndStatusTuple;
if (errorStatus == null) {
requestState.GotJsonResponse = true;
PNStatus status = new StatusBuilder(config, jsonLibrary).CreateStatusResponse(requestState.ResponseType, PNStatusCategory.PNAcknowledgmentCategory, requestState, (int)HttpStatusCode.OK, null);
JsonAndStatusTuple = new Tuple<string, PNStatus>(responseString, status);
} else {
Expand Down

0 comments on commit 0055eda

Please sign in to comment.