Skip to content

Commit

Permalink
Merge branch 'main' into x/sio-fix-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
xingsy97 authored Dec 13, 2024
2 parents 208b20d + 113dbe6 commit cc8fcf4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public async Task<IList<string>> GetPairsAsync(string name)
var pairReadSequenceId = await _tableClient.GetEntityIfExistsAsync<SessionEntity>(pair, user, SequenceIdColumn);

return new ChatHistory(user, pair,
readSequenceId.HasValue ? readSequenceId.Value.ReadToSequenceId : 0,
pairReadSequenceId.HasValue ? pairReadSequenceId.Value.ReadToSequenceId : 0,
readSequenceId.HasValue ? readSequenceId.Value!.ReadToSequenceId : 0,
pairReadSequenceId.HasValue ? pairReadSequenceId.Value!.ReadToSequenceId : 0,
messages);
}

Expand All @@ -80,7 +80,7 @@ private async Task<bool> UpdateReadToAysncCore(string from, string to, long sequ
return true;
}

var entity = resp.Value;
var entity = resp.Value!;
if (entity.ReadToSequenceId > sequenceId)
{
return false;
Expand Down

0 comments on commit cc8fcf4

Please sign in to comment.