Bridge command author metadata to Matrix

This commit is contained in:
Cadence Ember 2024-08-28 00:50:48 +12:00
commit 42bfd034cf
3 changed files with 7 additions and 3 deletions

View file

@ -39,7 +39,7 @@ async function getCachedHierarchy(spaceID) {
/** @type {{name: string, value: string}[]} */
const childRooms = []
for (const room of result) {
if (room.name) {
if (room.name && !room.name.match(/^\[[⛓️🔊]\]/) && room.room_type !== "m.space") {
childRooms.push({name: room.name, value: room.room_id})
reverseCache.set(room.room_id, spaceID)
}