[UI > QuickInstall] Fix forum posts
This commit is contained in:
parent
d602f60a96
commit
289ffa49f2
1 changed files with 1 additions and 6 deletions
|
@ -39,12 +39,7 @@ export default () => after("default", ForumPostLongPressActionSheet, ([{ thread
|
||||||
const url = urls[0];
|
const url = urls[0];
|
||||||
if (!url) return;
|
if (!url) return;
|
||||||
|
|
||||||
/* Assuming that the actions array is at index 1
|
const actions = findInReactTree(res, (t) => t?.[0]?.key);
|
||||||
could break in the future, but I doubt Discord
|
|
||||||
will add more to the post action sheet and
|
|
||||||
index 0 will either be quick add reactions or false.
|
|
||||||
*/
|
|
||||||
const actions = findInReactTree(res, (t) => t.props?.bottom === true).props.children.props.children[1];
|
|
||||||
const ActionsSection = actions[0].type;
|
const ActionsSection = actions[0].type;
|
||||||
|
|
||||||
actions.unshift(<ActionsSection key="install">
|
actions.unshift(<ActionsSection key="install">
|
||||||
|
|
Loading…
Reference in a new issue