You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Disable irc mode in notifiactions panel
This commit is contained in:
@ -110,15 +110,16 @@ export default class MessagePanel extends React.Component {
|
|||||||
showReactions: PropTypes.bool,
|
showReactions: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor() {
|
// Force props to be loaded for useIRCLayout
|
||||||
super();
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
// previous positions the read marker has been in, so we can
|
// previous positions the read marker has been in, so we can
|
||||||
// display 'ghost' read markers that are animating away
|
// display 'ghost' read markers that are animating away
|
||||||
ghostReadMarkers: [],
|
ghostReadMarkers: [],
|
||||||
showTypingNotifications: SettingsStore.getValue("showTypingNotifications"),
|
showTypingNotifications: SettingsStore.getValue("showTypingNotifications"),
|
||||||
useIRCLayout: SettingsStore.getValue("feature_irc_ui"),
|
useIRCLayout: this.useIRCLayout(SettingsStore.getValue("feature_irc_ui")),
|
||||||
};
|
};
|
||||||
|
|
||||||
// opaque readreceipt info for each userId; used by ReadReceiptMarker
|
// opaque readreceipt info for each userId; used by ReadReceiptMarker
|
||||||
@ -203,10 +204,15 @@ export default class MessagePanel extends React.Component {
|
|||||||
|
|
||||||
onLayoutChange = () => {
|
onLayoutChange = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
useIRCLayout: SettingsStore.getValue("feature_irc_ui"),
|
useIRCLayout: this.useIRCLayout(SettingsStore.getValue("feature_irc_ui")),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useIRCLayout(ircLayoutSelected) {
|
||||||
|
// if room is null we are not in a normal room list
|
||||||
|
return ircLayoutSelected && this.props.room;
|
||||||
|
}
|
||||||
|
|
||||||
/* get the DOM node representing the given event */
|
/* get the DOM node representing the given event */
|
||||||
getNodeForEventId(eventId) {
|
getNodeForEventId(eventId) {
|
||||||
if (!this.eventNodes) {
|
if (!this.eventNodes) {
|
||||||
|
Reference in New Issue
Block a user