Don't reset panel on close of recent media pane
This commit is contained in:

committed by
Scott Nonnenberg

parent
901179440f
commit
9433a1de99
@@ -1966,7 +1966,6 @@
|
||||
props: await getProps(),
|
||||
onClose: () => {
|
||||
this.stopListening(this.model.messageCollection, 'remove', update);
|
||||
this.resetPanel();
|
||||
},
|
||||
});
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
/* global Whisper, Signal */
|
||||
/* global Backbone, Signal, Whisper */
|
||||
|
||||
/* eslint-disable more/no-then */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
initialize(options) {
|
||||
this.render();
|
||||
|
||||
const view = new Whisper.ReactWrapperView({
|
||||
this.view = new Whisper.ReactWrapperView({
|
||||
JSX: Signal.State.Roots.createSafetyNumberViewer(window.reduxStore, {
|
||||
contactID: options.model.get('id'),
|
||||
}),
|
||||
@@ -25,7 +25,14 @@
|
||||
},
|
||||
});
|
||||
|
||||
this.$('.key-verification-wrapper').append(view.el);
|
||||
this.$('.key-verification-wrapper').append(this.view.el);
|
||||
},
|
||||
|
||||
remove() {
|
||||
if (this.view) {
|
||||
this.view.remove();
|
||||
}
|
||||
Backbone.View.prototype.remove.call(this);
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
@@ -694,7 +694,7 @@
|
||||
{
|
||||
"rule": "jQuery-$(",
|
||||
"path": "js/views/key_verification_view.js",
|
||||
"line": " this.$('.key-verification-wrapper').append(view.el);",
|
||||
"line": " this.$('.key-verification-wrapper').append(this.view.el);",
|
||||
"lineNumber": 28,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-06-23T06:48:06.829Z"
|
||||
@@ -702,7 +702,7 @@
|
||||
{
|
||||
"rule": "jQuery-append(",
|
||||
"path": "js/views/key_verification_view.js",
|
||||
"line": " this.$('.key-verification-wrapper').append(view.el);",
|
||||
"line": " this.$('.key-verification-wrapper').append(this.view.el);",
|
||||
"lineNumber": 28,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-06-23T06:48:06.829Z"
|
||||
|
Reference in New Issue
Block a user