change default channel and user id for event messages according to new layout

This commit is contained in:
HF 2020-11-05 23:29:44 +01:00
parent 516131c7a2
commit 5bfd1b58d2
3 changed files with 8 additions and 8 deletions

View File

@ -223,7 +223,7 @@ export class ChatProvider {
name,
message,
channelId: number = 1,
id = 0,
id = 1,
country: string = 'xx',
sendapi: boolean = true,
) {

View File

@ -253,16 +253,16 @@ class APISocketServer extends WebSocketEvents {
chatProvider.broadcastChatMessage(
chatname,
msg,
0,
0,
1,
1,
'xx',
false,
);
this.broadcastChatMessage(
chatname,
msg,
0,
0,
1,
1,
'xx',
true,
ws,
@ -275,7 +275,7 @@ class APISocketServer extends WebSocketEvents {
name,
msg,
channelId,
0,
1,
country,
false,
);
@ -283,7 +283,7 @@ class APISocketServer extends WebSocketEvents {
name,
msg,
channelId,
0,
1,
country,
true,
ws,

View File

@ -72,7 +72,7 @@ class WebSockets {
name: string,
message: string,
channelId: number = 1,
id: number = 0,
id: number = 1,
country: string = 'xx',
sendapi: boolean = true,
) {