mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix StatusWhilePlaying
This commit is contained in:
parent
09e767f1f6
commit
cebb70b9ba
1 changed files with 3 additions and 3 deletions
|
@ -47,13 +47,13 @@ export default definePlugin({
|
||||||
RUNNING_GAMES_CHANGE(event) {
|
RUNNING_GAMES_CHANGE(event) {
|
||||||
const status = PresenceStore.getStatus(UserStore.getCurrentUser().id);
|
const status = PresenceStore.getStatus(UserStore.getCurrentUser().id);
|
||||||
if (event.games.length > 0) {
|
if (event.games.length > 0) {
|
||||||
if (savedStatus !== "" && savedStatus !== settings.store.statusToSet)
|
|
||||||
updateAsync(savedStatus);
|
|
||||||
} else {
|
|
||||||
if (status !== settings.store.statusToSet) {
|
if (status !== settings.store.statusToSet) {
|
||||||
savedStatus = status;
|
savedStatus = status;
|
||||||
updateAsync(settings.store.statusToSet);
|
updateAsync(settings.store.statusToSet);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (savedStatus !== "" && savedStatus !== settings.store.statusToSet)
|
||||||
|
updateAsync(savedStatus);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue