mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
MessagePeek Fix
This commit is contained in:
parent
42663f131e
commit
2113eec7ac
1 changed files with 2 additions and 1 deletions
|
@ -41,10 +41,11 @@ export default definePlugin({
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(?<=children:([^])[^]*)}\);/,
|
match: /(?<=children:([^])[^]*)}\);/,
|
||||||
replace: `$&
|
replace: `$&
|
||||||
|
if ($1[0] && $1[0].props && $1[0].props.children) {
|
||||||
$1[0].props.children[1].props.children=[
|
$1[0].props.children[1].props.children=[
|
||||||
$1[0].props.children[1].props.children,
|
$1[0].props.children[1].props.children,
|
||||||
$self.renderMessagePeek({ channel: $1[0].props.children[0].props.channel })
|
$self.renderMessagePeek({ channel: $1[0].props.children[0].props.channel })
|
||||||
];`.replace(/\s+/g, "")
|
];};`.replace(/\s+/g, "")
|
||||||
},
|
},
|
||||||
predicate: () => settings.store.guildChannels === true
|
predicate: () => settings.store.guildChannels === true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue