Fix flashing MR after restoring contact
This commit is contained in:
@@ -3724,7 +3724,6 @@ export class ConversationModel extends window.Backbone
|
|||||||
if (!storyId || isDirectConversation(this.attributes)) {
|
if (!storyId || isDirectConversation(this.attributes)) {
|
||||||
await this.maybeApplyUniversalTimer();
|
await this.maybeApplyUniversalTimer();
|
||||||
expireTimer = this.get('expireTimer');
|
expireTimer = this.get('expireTimer');
|
||||||
await this.restoreContact();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const recipientMaybeConversations = map(
|
const recipientMaybeConversations = map(
|
||||||
@@ -3860,6 +3859,12 @@ export class ConversationModel extends window.Backbone
|
|||||||
extraReduxActions,
|
extraReduxActions,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// The call above enables profile sharing so we have to restore contact
|
||||||
|
// afterwards, otherwise Message Request state will flash.
|
||||||
|
if (!storyId || isDirectConversation(this.attributes)) {
|
||||||
|
await this.restoreContact();
|
||||||
|
}
|
||||||
|
|
||||||
const renderDuration = Date.now() - renderStart;
|
const renderDuration = Date.now() - renderStart;
|
||||||
|
|
||||||
if (renderDuration > SEND_REPORTING_THRESHOLD_MS) {
|
if (renderDuration > SEND_REPORTING_THRESHOLD_MS) {
|
||||||
|
Reference in New Issue
Block a user