Skip to content

Commit ef47ed6

Browse files
committed
allActivities: disable only sending one (1) playing activity
1 parent 44e762e commit ef47ed6

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/allActivities/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ export const patches: Patch[] = [
1717
match: /\(0,\i\.uniqWith\)/,
1818
replacement: "((inp)=>inp)"
1919
}
20+
},
21+
22+
// Do NOT only allow ONE playing activity to be sent out, what are they THINKING
23+
{
24+
find: '"displayName","SelfPresenceStore"',
25+
replace: {
26+
match: /\i\.type===\i\.\i\.PLAYING\?\i\.push\(\i\):/,
27+
replacement: ""
28+
}
29+
},
30+
{
31+
find: '"displayName","PresenceStore"',
32+
replace: {
33+
match: /\i\.type===\i\.\i\.PLAYING\?\i\.push\(\i\):/,
34+
replacement: ""
35+
}
2036
}
2137
];
2238

src/allActivities/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
33
"id": "allActivities",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"meta": {
66
"name": "Activity Icons",
7-
"tagline": "Shows activity icons in the member list (formerly All Activities)",
7+
"tagline": "Shows activity icons in the member list (and activity viewing/sending related tweaks) (formerly All Activities)",
88
"description": "Showing all activities became a vanilla feature.",
99
"authors": ["Cynosphere"],
1010
"tags": ["profiles"],
1111
"source": "https://github.com/Cynosphere/moonlight-extensions",
1212
"donate": "https://ko-fi.com/Cynosphere",
13-
"changelog": "Showing all activities became a vanilla feature, and as such this extension is now only the icons in the member list.\nIf you did not use the icons option you are free to disable/remove this extension."
13+
"changelog": "Disable only sending one (1) playing activity"
1414
},
1515
"dependencies": ["spacepack", "common", "componentEditor"],
1616
"apiLevel": 2

0 commit comments

Comments
 (0)