fix id for event and api messages out-of-range
This commit is contained in:
parent
482cfd3fe3
commit
648c767849
|
@ -223,7 +223,7 @@ export class ChatProvider {
|
|||
name,
|
||||
message,
|
||||
channelId: number = 1,
|
||||
id = -1,
|
||||
id = 0,
|
||||
country: string = 'xx',
|
||||
sendapi: boolean = true,
|
||||
) {
|
||||
|
|
|
@ -254,7 +254,7 @@ class APISocketServer extends WebSocketEvents {
|
|||
chatname,
|
||||
msg,
|
||||
0,
|
||||
-1,
|
||||
0,
|
||||
'xx',
|
||||
false,
|
||||
);
|
||||
|
@ -262,7 +262,7 @@ class APISocketServer extends WebSocketEvents {
|
|||
chatname,
|
||||
msg,
|
||||
0,
|
||||
-1,
|
||||
0,
|
||||
'xx',
|
||||
true,
|
||||
ws,
|
||||
|
@ -275,7 +275,7 @@ class APISocketServer extends WebSocketEvents {
|
|||
name,
|
||||
msg,
|
||||
channelId,
|
||||
-1,
|
||||
0,
|
||||
country,
|
||||
false,
|
||||
);
|
||||
|
@ -283,7 +283,7 @@ class APISocketServer extends WebSocketEvents {
|
|||
name,
|
||||
msg,
|
||||
channelId,
|
||||
-1,
|
||||
0,
|
||||
country,
|
||||
true,
|
||||
ws,
|
||||
|
|
|
@ -72,7 +72,7 @@ class WebSockets {
|
|||
name: string,
|
||||
message: string,
|
||||
channelId: number = 1,
|
||||
id: number = -1,
|
||||
id: number = 0,
|
||||
country: string = 'xx',
|
||||
sendapi: boolean = true,
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user