addSingleMessage: Only loadNewestMessages if conversation is loaded
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
272f3fb2a5
commit
b5f3e5d6d2
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue