fix(IgnoreActivities): id -> exePath (#164)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Nuckyz 2022-10-27 05:27:52 -03:00 committed by GitHub
parent 13882b5732
commit 9548978d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,8 +157,8 @@ export default definePlugin({
if (exePath) return !ignoredActivitiesCache.includes(exePath);
}
}
/** Registered Games tab games have an "id" prop */
else if ("id" in props) {
/** Registered Games tab games have an "exePath" prop */
else if ("exePath" in props) {
if (props.id !== undefined) return !ignoredActivitiesCache.includes(props.id);
else return !ignoredActivitiesCache.includes(props.exePath);
}