Move condensedTypes to shared/

This decouples the rest of the server from the client
This commit is contained in:
Reto Brunner 2023-01-29 23:16:55 +01:00
commit b7540b5827
8 changed files with 34 additions and 39 deletions

View file

@ -9,7 +9,7 @@ import log from "./log";
import Chan, {Channel, ChanType} from "./models/chan";
import Msg, {MessageType, UserInMessage} from "./models/msg";
import Config from "./config";
import constants from "../client/js/constants";
import {condensedTypes} from "../shared/irc";
import inputs from "./plugins/inputs";
import PublicClient from "./plugins/packages/publicClient";
@ -569,7 +569,7 @@ class Client {
startIndex--;
// Do not count condensed messages towards the 100 messages
if (constants.condensedTypes.has(chan.messages[i].type)) {
if (condensedTypes.has(chan.messages[i].type)) {
continue;
}

View file

@ -5,7 +5,6 @@
"../shared/"
] /* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later. */,
"files": [
"../client/js/constants.ts",
"../babel.config.cjs",
"../defaults/config.js",
"../package.json",