Skip to content

Commit

Permalink
chore: startsession legacy rich presence & last game save
Browse files Browse the repository at this point in the history
  • Loading branch information
luchaos committed Oct 28, 2023
1 parent 66a52b0 commit 24f8d99
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions public/dorequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,6 @@ function DoRequestError(string $error, ?int $status = 200, ?string $code = null)
return DoRequestError("Unknown game");
}

if ($user->LastGameID != $gameID) {
expireRecentlyPlayedGames($user->User);
$user->LastGameID = $gameID;
}

// legacy rich presence support (deprecated - see ResumePlayerSession)
$user->RichPresenceMsg = "Playing {$game->Title}";
$user->RichPresenceMsgDate = Carbon::now();

$user->LastLogin = Carbon::now();
$user->save();

PlayerSessionHeartbeat::dispatch($user, $game);

$response['Success'] = true;
Expand Down

0 comments on commit 24f8d99

Please sign in to comment.