You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-21 07:42:09 +03:00
Remove ability to remove avatars
This commit is contained in:
@ -174,11 +174,6 @@ export default class MessagePanel extends React.Component {
|
||||
SettingsStore.watchSetting("showTypingNotifications", null, this.onShowTypingNotificationsChange);
|
||||
|
||||
this._layoutWatcherRef = SettingsStore.watchSetting("feature_irc_ui", null, this.onLayoutChange);
|
||||
this._displayAvatarsWatcherRef = SettingsStore.watchSetting(
|
||||
"feature_no_timeline_avatars",
|
||||
null,
|
||||
this.onDisplayAvatarsChange,
|
||||
);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@ -189,7 +184,6 @@ export default class MessagePanel extends React.Component {
|
||||
this._isMounted = false;
|
||||
SettingsStore.unwatchSetting(this._showTypingNotificationsWatcherRef);
|
||||
SettingsStore.unwatchSetting(this._layoutWatcherRef);
|
||||
SettingsStore.unwatchSetting(this._displayAvatarsWatcherRef);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
@ -214,12 +208,6 @@ export default class MessagePanel extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
onDisplayAvatarsChange = () => {
|
||||
this.setState({
|
||||
displayAvatars: SettingsStore.getValue("feature_no_timeline_avatars"),
|
||||
});
|
||||
}
|
||||
|
||||
/* get the DOM node representing the given event */
|
||||
getNodeForEventId(eventId) {
|
||||
if (!this.eventNodes) {
|
||||
@ -622,7 +610,6 @@ export default class MessagePanel extends React.Component {
|
||||
getRelationsForEvent={this.props.getRelationsForEvent}
|
||||
showReactions={this.props.showReactions}
|
||||
useIRCLayout={this.state.useIRCLayout}
|
||||
displayAvatars={this.state.displayAvatars}
|
||||
/>
|
||||
</TileErrorBoundary>
|
||||
</li>,
|
||||
|
Reference in New Issue
Block a user