addSingleMessage: Only loadNewestMessages if conversation is loaded
This commit is contained in:
parent
04ef741236
commit
8a36891512
1 changed files with 1 additions and 1 deletions
|
@ -1413,7 +1413,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…
Add table
Reference in a new issue