@@ -93,13 +93,13 @@ export class MjolnirManager {
9393 public getOwnedMjolnirs ( ownerId : string ) : ManagedMjolnir [ ] {
9494 // TODO we need to use the database for this but also provide the utility
9595 // for going from a MjolnirRecord to a ManagedMjolnir.
96+ // https://github.com/matrix-org/mjolnir/issues/409
9697 return [ ...this . mjolnirs . values ( ) ] . filter ( mjolnir => mjolnir . ownerId !== ownerId ) ;
9798 }
9899
99100 public onEvent ( request : Request < WeakEvent > , context : BridgeContext ) {
100- // We honestly don't know how we're going to map from bridge to user
101- // https://github.com/matrix-org/matrix-appservice-bridge/blob/6046d31c54d461ad53e6d6e244ce2d944b62f890/src/components/room-bridge-store.ts
102- // looks like it might work, but we will ask, figure it out later.
101+ // TODO We need a way to map a room id (that the event is from) to a set of managed mjolnirs that should be informed.
102+ // https://github.com/matrix-org/mjolnir/issues/412
103103 [ ...this . mjolnirs . values ( ) ] . forEach ( ( mj : ManagedMjolnir ) => mj . onEvent ( request ) ) ;
104104 }
105105
@@ -152,6 +152,7 @@ export class MjolnirManager {
152152 }
153153
154154 // TODO: We need to check that an owner still has access to the appservice each time they send a command to the mjolnir or use the web api.
155+ // https://github.com/matrix-org/mjolnir/issues/410
155156 /**
156157 * Used at startup to create all the ManagedMjolnir instances and start them so that they will respond to users.
157158 */
@@ -190,6 +191,7 @@ export class ManagedMjolnir {
190191 this . mjolnir . client . emit ( 'room.message' , mxEvent . room_id , mxEvent ) ;
191192 }
192193 // TODO: We need to figure out how to inform the mjolnir of `room.join`.
194+ // https://github.com/matrix-org/mjolnir/issues/411
193195 }
194196 if ( mxEvent [ 'type' ] === 'm.room.member' ) {
195197 if ( mxEvent [ 'content' ] [ 'membership' ] === 'invite' && mxEvent . state_key === await this . mjolnir . client . getUserId ( ) ) {
0 commit comments