Skip to content

Commit

Permalink
Misc followup
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Jan 2, 2024
1 parent bfb189d commit be2e173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ internal async Task OnPersonaState(string? nickname = null, string? avatarHash =
string checksum = Backend.GenerateChecksumFor(assetsForListing);
string? previousChecksum = BotCache.LastAnnouncedAssetsForListing.Count > 0 ? Backend.GenerateChecksumFor(BotCache.LastAnnouncedAssetsForListing) : null;

if ((tradeToken == BotCache.LastAnnouncedTradeToken) && (checksum == previousChecksum)) {
if (BotCache.LastRequestAt.HasValue && (DateTime.UtcNow.Subtract(BotCache.LastRequestAt.Value).TotalDays < MaxInactivityDays) && (tradeToken == BotCache.LastAnnouncedTradeToken) && (checksum == previousChecksum)) {
// We've determined our state to be the same, we can skip announce entirely and start sending heartbeats exclusively
bool triggerImmediately = !ShouldSendHeartBeats;

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.5.2.0</Version>
<Version>5.5.1.4</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit be2e173

Please sign in to comment.