Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynosphere committed Jan 29, 2025
1 parent 2e9b980 commit 17aeb08
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/allActivities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const patches: Patch[] = [
{
find: '"UserProfileFeaturedActivity"',
replace: {
match: /:function\(\){return (\i)}/,
replacement: ':function(){return require("allActivities_activities").default}'
match: /:\(\)=>(\i)}/,
replacement: ':()=>require("allActivities_activities").default}'
}
},

Expand All @@ -21,7 +21,7 @@ export const patches: Patch[] = [

// Do not de-duplicate entries in useUserProfileActivity
{
find: '("use-user-profile-activity")',
find: '"use-user-profile-activity"',
replace: {
match: /\(0,\i\.uniqWith\)/,
replacement: "((inp)=>inp)"
Expand Down
2 changes: 1 addition & 1 deletion src/allActivities/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
"id": "allActivities",
"version": "1.0.3",
"version": "1.0.4",
"meta": {
"name": "All Activities",
"tagline": "Shows all activities in user popouts, and optionally icons in the member list",
Expand Down
2 changes: 1 addition & 1 deletion src/alwaysShowForwardTime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const patches: Patch[] = [
{
find: ".messageSnapshots.map(",
replace: {
match: /(?<=return null==\i\?)null(?=:(\(0,(\i)\.jsxs\))\(\i\.Clickable,{className:(\i)\.footerContainer,)/,
match: /(?<=return null==\i\?)null(?=:(\(0,(\i)\.jsxs\))\(\i\.\i,{className:(\i)\.footerContainer,)/,
replacement: (_, createElement, ReactJSX, classes) =>
`${createElement}(require("alwaysShowForwardTime_timestamp")?.default??${ReactJSX}.Fragment,{wrapperClass:${classes}.footerContainer,className:${classes}.footerText,timestamp:arguments[0].snapshot.message.timestamp})`
}
Expand Down
5 changes: 3 additions & 2 deletions src/alwaysShowForwardTime/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
"id": "alwaysShowForwardTime",
"version": "1.0.0",
"version": "1.0.1",
"meta": {
"name": "Always Show Forward Time",
"tagline": "Shows the timestamp of forwards regardless of if its from a DM or unshared/private guild",
"authors": ["Cynosphere"],
"tags": ["qol", "chat"],
"source": "https://github.com/Cynosphere/moonlight-extensions",
"donate": "https://ko-fi.com/Cynosphere"
"donate": "https://ko-fi.com/Cynosphere",
"changelog": "Fixes for latest Discord"
},
"dependencies": ["spacepack"],
"apiLevel": 2
Expand Down
4 changes: 2 additions & 2 deletions src/inAppNotifications/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
"id": "inAppNotifications",
"version": "1.0.2",
"version": "1.0.3",
"meta": {
"name": "In App Notifications",
"tagline": "In app notifications akin to mobile",
"authors": ["Cynosphere"],
"tags": ["qol", "chat"],
"source": "https://github.com/Cynosphere/moonlight-extensions",
"donate": "https://ko-fi.com/Cynosphere",
"changelog": "Lazy load `useRoleIcon` to fix not loading on first load sometimes"
"changelog": "Fixes for latest Discord"
},
"dependencies": ["spacepack", "common"],
"settings": {
Expand Down
2 changes: 1 addition & 1 deletion src/inAppNotifications/webpackModules/notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MessageContent = spacepack.findByCode(".hasFlag(", "SOURCE_MESSAGE_DELETED
const MessageConstructor = spacepack.findByCode('.set("roleSubscriptionData",')[0].exports;
const createMessageRecord = spacepack.findFunctionByStrings(MessageConstructor, ".createFromServer(");

const MemoizeMessage = spacepack.findByCode(".customRenderedContent:")[0].exports.Z;
const MemoizeMessage = spacepack.findByCode("let{renderChangelogMessageMarkup:")[0].exports.Z;

const isMessageNewerThanImprovedMarkdownEpoch = Object.values(
spacepack.findByCode('"1088216706570268682"')[0].exports
Expand Down
2 changes: 1 addition & 1 deletion src/mediaTweaks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const patches: Patch[] = [
{
find: ',"chat input type must be set");',
replace: {
match: /(?<=!\i&&\()(\(0,\i\.\i\)\(.+?\.drafts\.type\))\?/,
match: /(?<=\i\|\|\()(\(0,\i\.\i\)\(.+?\.drafts\.type\))\?/,
replacement: (_, orig) => `((moonlight.getConfigOption("mediaTweaks","noStickerAutosend")??true)?true:${orig})?`
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/mediaTweaks/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
"id": "mediaTweaks",
"version": "1.0.8",
"version": "1.0.9",
"meta": {
"name": "Media Tweaks",
"tagline": "Various tweaks to images and videos. Every feature togglable.",
Expand Down

0 comments on commit 17aeb08

Please sign in to comment.