Add config check back, since bun doesn't crash anymore...?

This commit is contained in:
Hri7566 2023-09-13 09:41:14 -04:00
parent 7c40e0a288
commit a4eacc5443
1 changed files with 1 additions and 3 deletions

View File

@ -12,9 +12,7 @@ export const n: ServerEventListener<"n"> = {
for (const n of msg.n) { for (const n of msg.n) {
if (typeof n.n != "string") return; if (typeof n.n != "string") return;
// TODO Check for config.enableCustomNoteData here if (config.enableCustomNoteData) continue;
// For whatever reason, Bun likes to crash when we access that config object
continue;
if (n.s) { if (n.s) {
if (typeof n.s !== "number") return; if (typeof n.s !== "number") return;