mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix performance issue for quote rendering
This commit is contained in:
@@ -3620,9 +3620,6 @@ Whisper.ConversationView = Whisper.View.extend({
|
||||
const props = message.getPropsForQuote();
|
||||
|
||||
const contact = this.quotedMessage.getContact();
|
||||
if (contact) {
|
||||
this.listenTo(contact, 'change', this.renderQuotedMesage);
|
||||
}
|
||||
|
||||
this.quoteView = new Whisper.ReactWrapperView({
|
||||
className: 'quote-wrapper',
|
||||
@@ -3640,6 +3637,12 @@ Whisper.ConversationView = Whisper.View.extend({
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (contact) {
|
||||
this.quoteView.listenTo(contact, 'change', () => {
|
||||
this.renderQuotedMessage();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
showInvalidMessageToast(messageText?: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user