fix: order
This commit is contained in:
parent
296fe9543a
commit
78ffe9387c
|
@ -10,8 +10,9 @@ export default (latus) => class ActivityServer extends Activity(latus) {
|
||||||
static async respond(packet, {req}) {
|
static async respond(packet, {req}) {
|
||||||
const {config: {'%redisAdapter': adapter}} = latus;
|
const {config: {'%redisAdapter': adapter}} = latus;
|
||||||
const rooms = promisify(adapter.allRooms.bind(adapter));
|
const rooms = promisify(adapter.allRooms.bind(adapter));
|
||||||
const chats = Array.from(new Set((await rooms())
|
const chats = Array.from(new Set(['/r/reddichat']
|
||||||
.concat(['/r/reddichat', '/r/anonymous'])
|
.concat(await rooms())
|
||||||
|
.concat(['/r/anonymous'])
|
||||||
.filter((room) => room.match(/^\/r\//))).values());
|
.filter((room) => room.match(/^\/r\//))).values());
|
||||||
const activity = Object.fromEntries(await Promise.all(chats.map(async (chat) => [
|
const activity = Object.fromEntries(await Promise.all(chats.map(async (chat) => [
|
||||||
chat,
|
chat,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user