Upgrade to v1.5.8

This commit is contained in:
2020-01-29 14:35:10 +01:00
parent e9dc38f970
commit b8a67bd2a0
173 changed files with 10255 additions and 63533 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1514:function(n,o,t){"use strict";t.r(o);var a=t(253);t.n(a).a.Easings.easeOutBounce=function(n){return 1-function(n){for(var o,t=4;n<((o=Math.pow(2,--t))-1)/11;);return 1/Math.pow(4,3-t)-7.5625*Math.pow((3*o-2)/22-n,2)}(1-n)}}}]);
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1532:function(e,t,n){"use strict";n.r(t);var a=n(0),l=n.n(a),r=n(19),i=n.n(r),c=n(2),o=n.n(c),d=n(1),u=n(4),m=n(25),s=n(3);t.default=i()({displayName:"EncryptedEventDialog",propTypes:{event:o.a.object.isRequired,onFinished:o.a.func.isRequired},getInitialState:function(){return{device:null}},componentWillMount:function(){var e=this;this._unmounted=!1;var t=u.a.get();this.refreshDevice().then((function(n){return n||t.downloadKeys([e.props.event.getSender()],!0).then((function(){return e.refreshDevice()}))})).then((function(n){e._unmounted||(e.setState({device:n}),t.on("deviceVerificationChanged",e.onDeviceVerificationChanged))}),(function(e){console.log("Error downloading devices",e)}))},componentWillUnmount:function(){this._unmounted=!0;var e=u.a.get();e&&e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged)},refreshDevice:function(){return Promise.resolve(u.a.get().getEventSenderDeviceInfo(this.props.event))},onDeviceVerificationChanged:function(e,t){var n=this;e==this.props.event.getSender()&&this.refreshDevice().then((function(e){n.setState({device:e})}))},onKeyDown:function(e){e.key===m.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1))},_renderDeviceInfo:function(){var e=this.state.device;if(!e)return l.a.createElement("i",null,Object(d.a)("unknown device"));var t=l.a.createElement("b",null,Object(d.a)("NOT verified"));return e.isBlocked()?t=l.a.createElement("b",null,Object(d.a)("Blacklisted")):e.isVerified()&&(t=Object(d.a)("verified")),l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Name")),l.a.createElement("td",null,e.getDisplayName())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Device ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.deviceId))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Verification")),l.a.createElement("td",null,t)),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Ed25519 fingerprint")),l.a.createElement("td",null,l.a.createElement("code",null,e.getFingerprint())))))},_renderEventInfo:function(){var e=this.props.event;return l.a.createElement("table",null,l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("User ID")),l.a.createElement("td",null,e.getSender())),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Curve25519 identity key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getSenderKey()||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Claimed Ed25519 fingerprint key")),l.a.createElement("td",null,l.a.createElement("code",null,e.getKeysClaimed().ed25519||l.a.createElement("i",null,Object(d.a)("none"))))),l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Algorithm")),l.a.createElement("td",null,e.getWireContent().algorithm||l.a.createElement("i",null,Object(d.a)("unencrypted")))),"m.bad.encrypted"===e.getContent().msgtype?l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Decryption error")),l.a.createElement("td",null,e.getContent().body)):null,l.a.createElement("tr",null,l.a.createElement("td",null,Object(d.a)("Session ID")),l.a.createElement("td",null,l.a.createElement("code",null,e.getWireContent().session_id||l.a.createElement("i",null,Object(d.a)("none")))))))},render:function(){var e=s.a("elements.DeviceVerifyButtons"),t=null;return this.state.device&&(t=l.a.createElement(e,{device:this.state.device,userId:this.props.event.getSender()})),l.a.createElement("div",{className:"mx_EncryptedEventDialog",onKeyDown:this.onKeyDown},l.a.createElement("div",{className:"mx_Dialog_title"},Object(d.a)("End-to-end encryption information")),l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement("h4",null,Object(d.a)("Event information")),this._renderEventInfo(),l.a.createElement("h4",null,Object(d.a)("Sender device information")),this._renderDeviceInfo()),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{className:"mx_Dialog_primary",onClick:this.props.onFinished,autoFocus:!0},Object(d.a)("OK")),t))}})}}]);
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1533:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return b}));var o=t(9),a=t.n(o),i=t(8),s=t.n(i),r=t(13),u=t.n(r),c=t(12),l=t.n(c),p=t(7),d=t.n(p),g=t(14),h=t.n(g),m=t(5),y=t.n(m),f=t(0),k=t.n(f),w=t(2),v=t.n(w),A=t(3),D=t(1),b=function(n){function e(){var n,t;a()(this,e);for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return t=u()(this,(n=l()(e)).call.apply(n,[this].concat(i))),y()(d()(t),"onDontAskAgainClick",(function(){t.props.onFinished(),t.props.onDontAskAgain()})),y()(d()(t),"onSetupClick",(function(){t.props.onFinished(),t.props.onSetup()})),t}return h()(e,n),s()(e,[{key:"render",value:function(){var n=A.a("views.dialogs.BaseDialog"),e=A.a("views.elements.DialogButtons");return k.a.createElement(n,{className:"mx_IgnoreRecoveryReminderDialog",onFinished:this.props.onFinished,title:Object(D.a)("Are you sure?")},k.a.createElement("div",null,k.a.createElement("p",null,Object(D.a)("Without setting up Secure Message Recovery, you'll lose your secure message history when you log out.")),k.a.createElement("p",null,Object(D.a)("If you don't want to set this up now, you can later in Settings.")),k.a.createElement("div",{className:"mx_Dialog_buttons"},k.a.createElement(e,{primaryButton:Object(D.a)("Set up"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(D.a)("Don't ask again"),onCancel:this.onDontAskAgainClick}))))}}]),e}(k.a.PureComponent);y()(b,"propTypes",{onDontAskAgain:v.a.func.isRequired,onFinished:v.a.func.isRequired,onSetup:v.a.func.isRequired})}}]);
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1528:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return T}));var a=t(6),o=t.n(a),i=t(16),c=t.n(i),r=t(9),s=t.n(r),l=t(8),u=t.n(l),p=t(13),d=t.n(p),h=t(12),m=t.n(h),y=t(7),g=t.n(y),k=t(14),w=t.n(k),v=t(5),f=t.n(v),b=t(0),B=t.n(b),C=t(2),O=t.n(C),S=t(3),E=t(4),j=t(10),F=t(1),D=t(18),T=function(e){function n(){var e,t;s()(this,n);for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return t=d()(this,(e=m()(n)).call.apply(e,[this].concat(i))),f()(g()(t),"onOkClick",(function(){t.props.onFinished()})),f()(g()(t),"onGoToSettingsClick",(function(){t.props.onFinished(),j.a.dispatch({action:"view_user_settings"})})),f()(g()(t),"onSetupClick",c()(o.a.mark((function e(){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=S.a("dialogs.keybackup.RestoreKeyBackupDialog"),D.a.createTrackedDialog("Restore Backup","",n,{onFinished:t.props.onFinished},null,!1,!0);case 2:case"end":return e.stop()}}),e)})))),t}return w()(n,e),u()(n,[{key:"render",value:function(){var e,n=S.a("views.dialogs.BaseDialog"),t=S.a("views.elements.DialogButtons"),a=B.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(F.a)("New Recovery Method")),o=B.a.createElement("p",null,Object(F.a)("A new recovery passphrase and key for Secure Messages have been detected.")),i=B.a.createElement("p",{className:"warning"},Object(F.a)("If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings."));return e=E.a.get().getKeyBackupEnabled()?B.a.createElement("div",null,o,B.a.createElement("p",null,Object(F.a)("This device is encrypting history using the new recovery method.")),i,B.a.createElement(t,{primaryButton:Object(F.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(F.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):B.a.createElement("div",null,o,i,B.a.createElement(t,{primaryButton:Object(F.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(F.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),B.a.createElement(n,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:a},e)}}]),n}(B.a.PureComponent);f()(T,"propTypes",{newVersionInfo:O.a.object,onFinished:O.a.func.isRequired})}}]);
+1
View File
@@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1529:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return E}));var a=t(9),i=t.n(a),o=t(8),c=t.n(o),s=t(13),r=t.n(s),l=t(12),u=t.n(l),d=t(7),p=t.n(d),h=t(14),y=t.n(h),m=t(5),v=t.n(m),g=t(0),w=t.n(g),k=t(2),f=t.n(k),b=t(3),S=t(10),B=t(1),C=t(18),E=function(e){function n(){var e,a;i()(this,n);for(var o=arguments.length,c=new Array(o),s=0;s<o;s++)c[s]=arguments[s];return a=r()(this,(e=u()(n)).call.apply(e,[this].concat(c))),v()(p()(a),"onGoToSettingsClick",(function(){a.props.onFinished(),S.a.dispatch({action:"view_user_settings"})})),v()(p()(a),"onSetupClick",(function(){a.props.onFinished(),C.a.createTrackedDialogAsync("Key Backup","Key Backup",Promise.all([t.e(0),t.e(1)]).then(t.bind(null,1522)),null,null,!1,!0)})),a}return y()(n,e),c()(n,[{key:"render",value:function(){var e=b.a("views.dialogs.BaseDialog"),n=b.a("views.elements.DialogButtons"),t=w.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(B.a)("Recovery Method Removed"));return w.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:t},w.a.createElement("div",null,w.a.createElement("p",null,Object(B.a)("This device has detected that your recovery passphrase and key for Secure Messages have been removed.")),w.a.createElement("p",null,Object(B.a)("If you did this accidentally, you can setup Secure Messages on this device which will re-encrypt this device's message history with a new recovery method.")),w.a.createElement("p",{className:"warning"},Object(B.a)("If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.")),w.a.createElement(n,{primaryButton:Object(B.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(B.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})))}}]),n}(w.a.PureComponent);v()(E,"propTypes",{onFinished:f.a.func.isRequired})}}]);
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,142 @@
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/**
* filesize
*
* @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.5.6
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/
/**
* @license MIT
* @fileOverview Favico animations
* @author Miroslav Magda, http://blog.ejci.net
* @version 0.3.10
*/
/*@cc_on!@*/
/*!
* UAParser.js v0.7.21
* Lightweight JavaScript-based User-Agent string parser
* https://github.com/faisalman/ua-parser-js
*
* Copyright © 2012-2019 Faisal Salman <f@faisalman.com>
* Licensed under MIT License
*/
/*! https://mths.be/punycode v1.4.1 by @mathias */
/** @license React v16.12.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.12.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v0.18.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.12.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
* @version v5.2.6
* @link https://github.com/ten1seven/what-input
* @license MIT
*/
/**
* gemini-scrollbar
* @version 1.4.3
* @link http://noeldelgado.github.io/gemini-scrollbar/
* @license MIT
*/
/*! http://mths.be/fromcodepoint v0.2.1 by @mathias */
/*! http://mths.be/repeat v0.2.0 by @mathias */
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1510)}({1510:function(e,t,r){}});
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1508)}({1508:function(e,t,r){}});
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1509)}({1509:function(e,t,r){}});
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1507)}({1507:function(e,t,r){}});