You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.0 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1423:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return w}));var a=n(79),s=n.n(a),i=n(78),r=n.n(i),l=n(95),o=n(97),d=n(116),c=n(83),u=n(80),p=n(84),b=n(227),h=n(91),m=n(98);class w extends r.a.Component{constructor(e){super(e),s()(this,"onDisable",async()=>{this.setState({disabling:!0}),await p.b.setValue("enableEventIndexing",null,m.a.DEVICE,!1),await b.a.deleteEventIndex(),this.props.onFinished(!0),c.a.fire(h.a.ViewUserSettings)}),this.state={disabling:!1}}render(){return r.a.createElement(l.a,{onFinished:this.props.onFinished,title:Object(u.a)("Are you sure?")},Object(u.a)("If disabled, messages from encrypted rooms won't appear in search results."),this.state.disabling?r.a.createElement(o.a,null):r.a.createElement("div",null),r.a.createElement(d.a,{primaryButton:Object(u.a)("Disable"),onPrimaryButtonClick:this.onDisable,primaryButtonClass:"danger",cancelButtonClass:"warning",onCancel:this.props.onFinished,disabled:this.state.disabling}))}}}}]);
//# sourceMappingURL=27.js.map