mirror of https://github.com/vector-im/riot-web
rename feature flag for Threads
parent
ffc7326b0c
commit
ac0412d238
|
@ -213,6 +213,7 @@ class MatrixClientPegClass implements IMatrixClientPeg {
|
||||||
opts.pendingEventOrdering = PendingEventOrdering.Detached;
|
opts.pendingEventOrdering = PendingEventOrdering.Detached;
|
||||||
opts.lazyLoadMembers = true;
|
opts.lazyLoadMembers = true;
|
||||||
opts.clientWellKnownPollPeriod = 2 * 60 * 60; // 2 hours
|
opts.clientWellKnownPollPeriod = 2 * 60 * 60; // 2 hours
|
||||||
|
opts.experimentalThreadSupport = SettingsStore.getValue("experimentalThreadSupport");
|
||||||
|
|
||||||
// Connect the matrix client to the dispatcher and setting handlers
|
// Connect the matrix client to the dispatcher and setting handlers
|
||||||
MatrixActionCreators.start(this.matrixClient);
|
MatrixActionCreators.start(this.matrixClient);
|
||||||
|
|
|
@ -446,7 +446,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||||
// Always show highlighted event
|
// Always show highlighted event
|
||||||
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
if (this.props.highlightedEventId === mxEv.getId()) return true;
|
||||||
|
|
||||||
const threadingEnabled = SettingsStore.getValue("feature_threading");
|
const threadingEnabled = SettingsStore.getValue("experimentalThreadSupport");
|
||||||
if (threadingEnabled && mxEv.replyEventId && this.props.hideThreadedMessages === true) {
|
if (threadingEnabled && mxEv.replyEventId && this.props.hideThreadedMessages === true) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,8 +211,11 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||||
supportedLevels: LEVELS_FEATURE,
|
supportedLevels: LEVELS_FEATURE,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
"feature_threading": {
|
"experimentalThreadSupport": {
|
||||||
isFeature: true,
|
isFeature: true,
|
||||||
|
// Requires a reload as we change an option flag on the `js-sdk`
|
||||||
|
// And the entire sync history needs to be parsed again
|
||||||
|
controller: new ReloadOnChangeController(),
|
||||||
displayName: _td("Threaded messaging"),
|
displayName: _td("Threaded messaging"),
|
||||||
supportedLevels: LEVELS_FEATURE,
|
supportedLevels: LEVELS_FEATURE,
|
||||||
default: false,
|
default: false,
|
||||||
|
|
Loading…
Reference in New Issue