Files
Signal-Desktop/js/views/key_verification_view.js
2020-07-30 13:10:05 -07:00

27 lines
621 B
JavaScript

/* global Whisper, Signal */
/* eslint-disable more/no-then */
// eslint-disable-next-line func-names
(function() {
'use strict';
window.Whisper = window.Whisper || {};
Whisper.KeyVerificationPanelView = Whisper.View.extend({
className: 'panel',
templateName: 'key-verification',
initialize(options) {
this.render();
const view = new Whisper.ReactWrapperView({
JSX: Signal.State.Roots.createSafetyNumberViewer(window.reduxStore, {
contactID: options.model.get('id'),
}),
});
this.$('.key-verification-wrapper').append(view.el);
},
});
})();