This commit is contained in:
Michael Telatynski
2021-06-15 10:06:30 +01:00
parent 913710dd99
commit e0c36498e6
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -14,12 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import {EventEmitter} from 'events';
import { EventEmitter } from 'events';
import {EventStatus, MatrixEvent} from './event';
import {Room} from './room';
import {logger} from '../logger';
import {RelationType} from "../@types/event";
import { EventStatus, MatrixEvent } from './event';
import { Room } from './room';
import { logger } from '../logger';
import { RelationType } from "../@types/event";
/**
* A container for relation events that supports easy access to common ways of
@@ -159,7 +159,7 @@ export class Relations extends EventEmitter {
// Event was cancelled, remove from the collection
event.removeListener("Event.status", this.onEventStatus);
this.removeEvent(event);
}
};
/**
* Get all relation events in this collection.
@@ -258,7 +258,7 @@ export class Relations extends EventEmitter {
redactedEvent.removeListener("Event.beforeRedaction", this.onBeforeRedaction);
this.emit("Relations.redaction", redactedEvent);
}
};
/**
* Get all events in this collection grouped by key and sorted by descending
+1 -1
View File
@@ -181,7 +181,7 @@ export class StubStore implements IStore {
* @param {string} filterName The filter name.
* @return {?string} The filter ID or null.
*/
public getFilterIdByName(filterName: string): Filter | null {
public getFilterIdByName(filterName: string): string | null {
return null;
}