Adding missing handler for error message in front + removing 2 useless classes in ServerToClientMessage
This commit is contained in:
parent
331daca854
commit
d7875c2c68
@ -255,6 +255,9 @@ export class RoomConnection implements RoomConnection {
|
|||||||
warningContainerStore.activateWarningContainer();
|
warningContainerStore.activateWarningContainer();
|
||||||
} else if (message.hasRefreshroommessage()) {
|
} else if (message.hasRefreshroommessage()) {
|
||||||
//todo: implement a way to notify the user the room was refreshed.
|
//todo: implement a way to notify the user the room was refreshed.
|
||||||
|
} else if (message.hasErrormessage()) {
|
||||||
|
const errorMessage = message.getErrormessage() as ErrorMessage;
|
||||||
|
console.error("An error occurred server side: " + errorMessage.getMessage());
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Unknown message received");
|
throw new Error("Unknown message received");
|
||||||
}
|
}
|
||||||
|
@ -274,12 +274,12 @@ message ServerToClientMessage {
|
|||||||
SendJitsiJwtMessage sendJitsiJwtMessage = 11;
|
SendJitsiJwtMessage sendJitsiJwtMessage = 11;
|
||||||
SendUserMessage sendUserMessage = 12;
|
SendUserMessage sendUserMessage = 12;
|
||||||
BanUserMessage banUserMessage = 13;
|
BanUserMessage banUserMessage = 13;
|
||||||
AdminRoomMessage adminRoomMessage = 14;
|
//AdminRoomMessage adminRoomMessage = 14;
|
||||||
WorldFullWarningMessage worldFullWarningMessage = 15;
|
WorldFullWarningMessage worldFullWarningMessage = 15;
|
||||||
WorldFullMessage worldFullMessage = 16;
|
WorldFullMessage worldFullMessage = 16;
|
||||||
RefreshRoomMessage refreshRoomMessage = 17;
|
RefreshRoomMessage refreshRoomMessage = 17;
|
||||||
WorldConnexionMessage worldConnexionMessage = 18;
|
WorldConnexionMessage worldConnexionMessage = 18;
|
||||||
EmoteEventMessage emoteEventMessage = 19;
|
//EmoteEventMessage emoteEventMessage = 19;
|
||||||
TokenExpiredMessage tokenExpiredMessage = 20;
|
TokenExpiredMessage tokenExpiredMessage = 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user