mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-25 11:43:07 +01:00
question mark.
This commit is contained in:
parent
005aa8e52c
commit
c4599a87ce
@ -213,7 +213,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
|
||||
const session = getMostRelevantSession(sessions);
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
if (session.status == "unknown") session.status = "online";
|
||||
if (session?.status == "unknown") session.status = "online";
|
||||
const user = (await User.getPublicUser(x)).toPublicUser(); // why is this needed?
|
||||
|
||||
return Send(this, {
|
||||
|
Loading…
Reference in New Issue
Block a user