2020-06-25 20:08:58 -04:00
|
|
|
/* global Whisper, Signal */
|
2018-07-06 17:48:14 -07:00
|
|
|
|
|
|
|
/* eslint-disable more/no-then */
|
|
|
|
|
|
|
|
// eslint-disable-next-line func-names
|
2018-04-27 17:25:04 -04:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
2018-07-06 17:48:14 -07:00
|
|
|
|
2018-04-27 17:25:04 -04:00
|
|
|
window.Whisper = window.Whisper || {};
|
2015-02-26 18:10:04 -08:00
|
|
|
|
2018-04-27 17:25:04 -04:00
|
|
|
Whisper.KeyVerificationPanelView = Whisper.View.extend({
|
2020-06-25 20:08:58 -04:00
|
|
|
className: 'panel',
|
2018-04-27 17:25:04 -04:00
|
|
|
templateName: 'key-verification',
|
2018-07-06 17:48:14 -07:00
|
|
|
initialize(options) {
|
2019-08-09 16:35:09 -07:00
|
|
|
this.render();
|
|
|
|
|
2020-06-25 20:08:58 -04:00
|
|
|
const view = new Whisper.ReactWrapperView({
|
|
|
|
JSX: Signal.State.Roots.createSafetyNumberViewer(window.reduxStore, {
|
|
|
|
contactID: options.model.get('id'),
|
|
|
|
}),
|
2018-07-06 17:48:14 -07:00
|
|
|
});
|
2017-06-10 12:18:24 -07:00
|
|
|
|
2020-06-25 20:08:58 -04:00
|
|
|
this.$('.key-verification-wrapper').append(view.el);
|
2018-04-27 17:25:04 -04:00
|
|
|
},
|
|
|
|
});
|
2015-02-26 18:10:04 -08:00
|
|
|
})();
|