Force enable threads labs flag
This commit is contained in:
parent
fbfa174ad0
commit
7ca1b385d9
27 changed files with 41 additions and 40 deletions
|
@ -287,7 +287,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
|||
// and we check this in a hot code path. This is also cached in our
|
||||
// RoomContext, however we still need a fallback for roomless MessagePanels.
|
||||
this._showHiddenEvents = SettingsStore.getValue("showHiddenEventsInTimeline");
|
||||
this.threadsEnabled = SettingsStore.getValue("feature_threadstable");
|
||||
this.threadsEnabled = SettingsStore.getValue("feature_threadenabled");
|
||||
|
||||
this.showTypingNotificationsWatcherRef = SettingsStore.watchSetting(
|
||||
"showTypingNotifications",
|
||||
|
|
|
@ -100,7 +100,7 @@ export const RoomSearchView = forwardRef<ScrollPanel, Props>(
|
|||
return b.length - a.length;
|
||||
});
|
||||
|
||||
if (SettingsStore.getValue("feature_threadstable")) {
|
||||
if (SettingsStore.getValue("feature_threadenabled")) {
|
||||
// Process all thread roots returned in this batch of search results
|
||||
// XXX: This won't work for results coming from Seshat which won't include the bundled relationship
|
||||
for (const result of results.results) {
|
||||
|
|
|
@ -1182,7 +1182,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||
CHAT_EFFECTS.forEach((effect) => {
|
||||
if (containsEmoji(ev.getContent(), effect.emojis) || ev.getContent().msgtype === effect.msgType) {
|
||||
// For initial threads launch, chat effects are disabled see #19731
|
||||
if (!SettingsStore.getValue("feature_threadstable") || !ev.isRelation(THREAD_RELATION_TYPE.name)) {
|
||||
if (!SettingsStore.getValue("feature_threadenabled") || !ev.isRelation(THREAD_RELATION_TYPE.name)) {
|
||||
dis.dispatch({ action: `effects.${effect.command}` });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -249,7 +249,7 @@ const ThreadPanel: React.FC<IProps> = ({ roomId, onClose, permalinkCreator }) =>
|
|||
const openFeedback = shouldShowFeedback()
|
||||
? () => {
|
||||
Modal.createDialog(BetaFeedbackDialog, {
|
||||
featureId: "feature_threadstable",
|
||||
featureId: "feature_threadenabled",
|
||||
});
|
||||
}
|
||||
: null;
|
||||
|
|
|
@ -1688,7 +1688,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
|||
is very tied to the main room timeline, we are forcing the timeline to
|
||||
send read receipts for threaded events */
|
||||
const isThreadTimeline = this.context.timelineRenderingType === TimelineRenderingType.Thread;
|
||||
if (SettingsStore.getValue("feature_threadstable") && isThreadTimeline) {
|
||||
if (SettingsStore.getValue("feature_threadenabled") && isThreadTimeline) {
|
||||
return 0;
|
||||
}
|
||||
const index = this.state.events.findIndex((ev) => ev.getId() === evId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue