MessageView refactor: reply -> quote
This commit is contained in:
parent
d29162f3b6
commit
e66f9faf33
1 changed files with 7 additions and 7 deletions
|
@ -258,8 +258,8 @@
|
||||||
if (this.timeStampView) {
|
if (this.timeStampView) {
|
||||||
this.timeStampView.remove();
|
this.timeStampView.remove();
|
||||||
}
|
}
|
||||||
if (this.replyView) {
|
if (this.quoteView) {
|
||||||
this.replyView.remove();
|
this.quoteView.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: We have to do this in the background (`then` instead of `await`)
|
// NOTE: We have to do this in the background (`then` instead of `await`)
|
||||||
|
@ -377,19 +377,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const contact = this.model.getQuoteContact();
|
const contact = this.model.getQuoteContact();
|
||||||
if (this.replyView) {
|
if (this.quoteView) {
|
||||||
this.replyView.remove();
|
this.quoteView.remove();
|
||||||
this.replyView = null;
|
this.quoteView = null;
|
||||||
} else if (contact) {
|
} else if (contact) {
|
||||||
this.listenTo(contact, 'change:color', this.renderQuote);
|
this.listenTo(contact, 'change:color', this.renderQuote);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.replyView = new Whisper.ReactWrapperView({
|
this.quoteView = new Whisper.ReactWrapperView({
|
||||||
className: 'quote-wrapper',
|
className: 'quote-wrapper',
|
||||||
Component: window.Signal.Components.Quote,
|
Component: window.Signal.Components.Quote,
|
||||||
props,
|
props,
|
||||||
});
|
});
|
||||||
this.$('.inner-bubble').prepend(this.replyView.el);
|
this.$('.inner-bubble').prepend(this.quoteView.el);
|
||||||
},
|
},
|
||||||
isImageWithoutCaption() {
|
isImageWithoutCaption() {
|
||||||
const attachments = this.model.get('attachments');
|
const attachments = this.model.get('attachments');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue