Fixes emote menu and typo

This commit is contained in:
Zack Rauen 2020-10-08 15:12:57 -04:00
parent 5eadcd587b
commit 707c3848ef
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ export default new class EmoteMenu extends Builtin {
if (props.expressionPickerView == "emoji" && this.hideEmojis) props.expressionPickerView = "gif";
});
this.after(EmojiPicker, "type", (_, [props], returnValue) => {
const head = Utilities.getNestedProp(returnValue, "props.children.props.children.1.props.children.0.props.children.props.children");
const body = Utilities.getNestedProp(returnValue, "props.children.props.children.1.props.children");
const head = Utilities.getNestedProp(returnValue, "props.children.props.children.props.children.1.props.children.0.props.children.props.children");
const body = Utilities.getNestedProp(returnValue, "props.children.props.children.props.children.1.props.children");
if (!head || !body) return returnValue;
const selected = props.expressionPickerView;
@ -36,7 +36,7 @@ export default new class EmoteMenu extends Builtin {
}, e.label))
));
if (currentTab) body[2] = currentTab.element();
if (this.hideEmojis) head.splice(head.findIndex(e=>e.props.id == "emoji-picker-tab"), 1);
if (this.hideEmojis) head.splice(head.findIndex(e => e && e.props && e.props.id == "emoji-picker-tab"), 1);
});
}

View File

@ -7,7 +7,7 @@ export default {
title: "What's New?",
items: [
"**Everything** is entirely rewritten, for better or worse.",
"**Emotes and CustomCSS** can be completely turned off for those not interested. It saves on memory too but not loading those components.",
"**Emotes and CustomCSS** can be completely turned off for those not interested. It saves on memory too by not loading those components.",
"**Floating editors** for both custom css and plugins/themes are now available. (See video above)",
"**Settings panels** are completely new and sleek. They are also highly extensible for potential future features :eyes:",
"**Translations** are now integrated starting with only a couple languages, but feel free to contribute your own!",