Fix types

This commit is contained in:
Jaiwanth 2021-06-23 12:14:20 +05:30
parent b2162c3be9
commit 5fff64f128
2 changed files with 2 additions and 3 deletions

View file

@ -79,8 +79,7 @@ export default class HTMLExporter extends Exporter {
const creatorName = this.room?.getMember(creator)?.rawDisplayName || creator;
const exporter = this.matrixClient.getUserId();
const exporterName = this.room?.getMember(exporter)?.rawDisplayName;
const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic
|| this.room.topic || "";
const topic = this.room.currentState.getStateEvents(EventType.RoomTopic, "")?.getContent()?.topic || "";
const createdText = _t("%(creatorName)s created this room.", {
creatorName,
});