Skip to content

Commit

Permalink
Remove override of UserConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Mar 15, 2023
1 parent d58fb84 commit 23b5080
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions server/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export type UserConfig = {
hostname?: string;
isSecure?: boolean;
};
networks?: NetworkConfig[];
};

export type Mention = {
Expand All @@ -95,9 +96,7 @@ class Client {
attachedClients!: {
[socketId: string]: {token: string; openChannel: number};
};
config!: UserConfig & {
networks?: NetworkConfig[];
};
config!: UserConfig;
id!: number;
idMsg!: number;
idChan!: number;
Expand All @@ -112,11 +111,7 @@ class Client {

fileHash!: string;

constructor(
manager: ClientManager,
name?: string,
config = {} as UserConfig & {networks: NetworkConfig[]}
) {
constructor(manager: ClientManager, name?: string, config = {} as UserConfig) {
_.merge(this, {
awayMessage: "",
lastActiveChannel: -1,
Expand Down

0 comments on commit 23b5080

Please sign in to comment.