Skip to content

Commit

Permalink
fix(discord rpc): remove redundant remaining time text, close #1461
Browse files Browse the repository at this point in the history
  • Loading branch information
z-huang committed Aug 27, 2024
1 parent b6ae621 commit e4f8cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/zionhuang/music/utils/DiscordRPC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DiscordRPC(
"Visit InnerTune" to "https://github.com/z-huang/InnerTune"
),
type = Type.LISTENING,
startTime = System.currentTimeMillis(),
since = System.currentTimeMillis(),
applicationId = APPLICATION_ID
)
}
Expand Down
3 changes: 2 additions & 1 deletion kizzy/src/main/java/com/my/kizzy/rpc/KizzyRPC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ open class KizzyRPC(token: String) {
streamUrl: String? = null,
applicationId: String? = null,
status: String? = "online",
since: Long? = null,
) {
if (!isRpcRunning()) {
discordWebSocket.connect()
Expand All @@ -80,7 +81,7 @@ open class KizzyRPC(token: String) {
)
),
afk = true,
since = startTime ?: System.currentTimeMillis(),
since = since,
status = status ?: "online"
)
discordWebSocket.sendActivity(presence)
Expand Down

0 comments on commit e4f8cf2

Please sign in to comment.