Merge pull request #4578 from matrix-org/t3chguy/topic_dialog

Fix topic dialog not supporting escape as it didn't have a "Close"
pull/21833/head
Michael Telatynski 2020-05-13 10:51:00 +01:00 committed by GitHub
commit 998b661796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ export const Commands = [
Modal.createTrackedDialog('Slash Commands', 'Topic', InfoDialog, { Modal.createTrackedDialog('Slash Commands', 'Topic', InfoDialog, {
title: room.name, title: room.name,
description: <div dangerouslySetInnerHTML={{ __html: topicHtml }} />, description: <div dangerouslySetInnerHTML={{ __html: topicHtml }} />,
hasCloseButton: true,
}); });
return success(); return success();
}, },