Stage 2 : Finish Alpha, Begin Beta #2
|
@ -481,6 +481,21 @@ addService(({
|
|||
status : "success"
|
||||
});
|
||||
}
|
||||
case 'room/list':{
|
||||
let rooms = [];
|
||||
for (const [id, {accessType,name,joinType,description}] of Room.rooms) if(accessType == "public"){
|
||||
rooms.push({
|
||||
name,
|
||||
joinType,
|
||||
description,
|
||||
id
|
||||
})
|
||||
}
|
||||
end({
|
||||
type:'public/rooms',
|
||||
rooms
|
||||
});
|
||||
}
|
||||
default:{
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue