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