Safely generate cached conversation props on startup

This commit is contained in:
Scott Nonnenberg
2020-08-11 16:15:06 -07:00
committed by GitHub
parent b32445cd20
commit 67058e27bb
5 changed files with 40 additions and 13 deletions

View File

@@ -664,10 +664,7 @@
return ConversationController.get(identifier);
},
getConversation() {
// This needs to be an unsafe call, because this method is called during
// initial module setup. We may be in the middle of the initial fetch to
// the database.
return ConversationController.getUnsafe(this.get('conversationId'));
return ConversationController.get(this.get('conversationId'));
},
createNonBreakingLastSeparator(text) {
if (!text) {