@replaceableComponent

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-04-14 14:50:09 +01:00
parent 46f7fadf3f
commit 50d6551c86
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ import MatrixClientContext from "../../contexts/MatrixClientContext";
import * as KeyboardShortcuts from "../../accessibility/KeyboardShortcuts";
import HomePage from "./HomePage";
import ResizeNotifier from "../../utils/ResizeNotifier";
import { replaceableComponent } from '../../utils/replaceableComponent';
// We need to fetch each pinned message individually (if we don't already have it)
// so each pinned message may trigger a request. Limit the number per room for sanity.
// NB. this is just for server notices rather than pinned messages in general.
@ -108,6 +109,7 @@ interface IState {
*
* Components mounted below us can access the matrix client via the react context.
*/
@replaceableComponent("structures.LoggedInView")
class LoggedInView extends React.PureComponent<IProps, IState> {
static displayName = 'LoggedInView';