Skip to content

Commit

Permalink
Compact MediaItemCache call
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Sep 15, 2024
1 parent 5c6dbb9 commit 9817605
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/DiscordRPC/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ const unloadPause = intercept("playbackControls/PAUSE", () => {
const { playbackContext, playbackState, latestCurrentTime } =
getPlaybackControl();

const newTrack = await MediaItemCache.ensure(playbackContext?.actualProductId);

update({
track: newTrack,
track: await MediaItemCache.ensure(playbackContext?.actualProductId),
time: latestCurrentTime,
paused: playbackState !== "PLAYING",
});
Expand Down

0 comments on commit 9817605

Please sign in to comment.