Revert "Add option to hide timestamp in RPC"

This commit is contained in:
Amaru8 2022-05-09 18:49:33 +00:00 committed by GitHub
parent 1c63d2ef7c
commit 6cca7c4e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 2 additions and 17 deletions

View file

@ -183,8 +183,8 @@ export default class DiscordRPC {
] //To change attributes.url => preload/cider-preload.js
}
// Add the timestamp if its playing and people want them
if (!this._utils.getStoreValue("general.discordrpc.hide_timestamp") && attributes.status) {
// Add the timestamp if its playing
if (attributes.status) {
activity.startTimestamp = Date.now() - (attributes?.durationInMillis - attributes?.remainingTime)
activity.endTimestamp = attributes.endTime
}