[Home] Fix Canary change backport to not error for stable

pull/62/head
Oj18 3 years ago
parent 715b4a93ec
commit ca986601fc

@ -164,7 +164,6 @@ export default async (goosemodScope) => {
goosemodScope.settingsUninjects.push(goosemodScope.patcher.patch(ConnectedPrivateChannelsList, 'default', (_args, res) => {
const newChanges = res.props.children.length === undefined;
console.log('honk!', newChanges);
if (newChanges) {
if (res.props.children.props.children.slice(3).find((x) => x?.toString()?.includes('GooseMod'))) return;
@ -190,7 +189,7 @@ export default async (goosemodScope) => {
});
}, 10);
res.props.children.props.children.push(
(newChanges ? res.props.children.props.children : res.props.children).push(
itemWrapper(React.createElement(ListSectionItem, {
className: HeaderClasses.privateChannelsHeaderContainer
},

Loading…
Cancel
Save