fix: anon last

This commit is contained in:
cha0s 2020-12-14 13:52:09 -06:00
parent c7e7aed869
commit b7331148b6

View File

@ -12,6 +12,7 @@ export default (latus) => class ActivityServer extends Activity(latus) {
const rooms = promisify(adapter.allRooms.bind(adapter)); const rooms = promisify(adapter.allRooms.bind(adapter));
const chats = Array.from(new Set(['/r/reddichat'] const chats = Array.from(new Set(['/r/reddichat']
.concat(await rooms()) .concat(await rooms())
.filter((channel) => '/r/anonymous' !== channel)
.concat(['/r/anonymous']) .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) => [