(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1497: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(96),o=n(95),d=n(118),c=n(83),u=n(80),p=n(84),b=n(233),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