fix id for event and api messages out-of-range

This commit is contained in:
HF 2020-11-05 22:53:50 +01:00
parent 482cfd3fe3
commit 648c767849
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -254,7 +254,7 @@ class APISocketServer extends WebSocketEvents {
chatname, chatname,
msg, msg,
0, 0,
-1, 0,
'xx', 'xx',
false, false,
); );
@ -262,7 +262,7 @@ class APISocketServer extends WebSocketEvents {
chatname, chatname,
msg, msg,
0, 0,
-1, 0,
'xx', 'xx',
true, true,
ws, ws,
@ -275,7 +275,7 @@ class APISocketServer extends WebSocketEvents {
name, name,
msg, msg,
channelId, channelId,
-1, 0,
country, country,
false, false,
); );
@ -283,7 +283,7 @@ class APISocketServer extends WebSocketEvents {
name, name,
msg, msg,
channelId, channelId,
-1, 0,
country, country,
true, true,
ws, ws,

View File

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