Skip to content

Commit 6e658f1

Browse files
committed
do not show broken search menu item for side chat
- there is no search for side chat right now
1 parent 4bec834 commit 6e658f1

File tree

1 file changed

+8
-1
lines changed
  • src/packages/frontend/frame-editors/generic

1 file changed

+8
-1
lines changed

src/packages/frontend/frame-editors/generic/chat.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,19 @@ function Chat({ font_size, desc }: EditorComponentProps) {
5151
);
5252
}
5353

54+
const commands: any = {};
55+
for (const x in chatroom.commands) {
56+
if (x == "time_travel" || x == "show_search") {
57+
continue;
58+
}
59+
commands[x] = true;
60+
}
5461
export const chat: EditorDescription = {
5562
type: "chat",
5663
short: labels.chat,
5764
name: labels.chat,
5865
icon: "comment",
59-
commands: chatroom.commands,
66+
commands,
6067
component: Chat,
6168
} as const;
6269

0 commit comments

Comments
 (0)