1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Revert "Rerender MessagePanel"

This reverts commit c7e61ac71d.
This commit is contained in:
Šimon Brandner
2021-02-05 08:27:07 +01:00
parent 9bd8fef6b3
commit ad5c8fe7e4
2 changed files with 0 additions and 15 deletions

View File

@@ -32,7 +32,6 @@ import {textForEvent} from "../../TextForEvent";
import IRCTimelineProfileResizer from "../views/elements/IRCTimelineProfileResizer";
import DMRoomMap from "../../utils/DMRoomMap";
import NewRoomIntro from "../views/rooms/NewRoomIntro";
import dis from "../../dispatcher/dispatcher";
const CONTINUATION_MAX_INTERVAL = 5 * 60 * 1000; // 5 minutes
const continuedTypes = ['m.sticker', 'm.room.message'];
@@ -204,16 +203,6 @@ export default class MessagePanel extends React.Component {
this._showTypingNotificationsWatcherRef =
SettingsStore.watchSetting("showTypingNotifications", null, this.onShowTypingNotificationsChange);
dis.register(this.onAction);
}
onAction = payload => {
switch (payload.action) {
case "rerender_MessagePanel":
this.forceUpdate();
break;
}
}
componentDidMount() {

View File

@@ -147,10 +147,6 @@ export default class TextualBody extends React.Component {
pre.className = "mx_EventTile_collapsedCodeBlock";
button.className += "mx_EventTile_expandButton";
}
/* Now we need to rerender the MessagePanel because the
* content's size has changed. Otherwise scrolling could
* get broken */
dis.dispatch({action: "rerender_MessagePanel"});
};
div.appendChild(button);