addSingleMessage: Only loadNewestMessages if conversation is loaded

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-03-22 19:02:52 -07:00 committed by GitHub
parent 272f3fb2a5
commit b5f3e5d6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1379,7 +1379,7 @@ export class ConversationModel extends window.Backbone
const isLatestInMemory =
newestId && messageIds && messageIds[messageIds.length - 1] === newestId;
if (isJustSent && !isLatestInMemory) {
if (isJustSent && existingConversation && !isLatestInMemory) {
await this.loadNewestMessages(undefined, undefined);
} else {
messagesAdded({