Wrap delivery receipt sends in conversation.queueJob
This commit is contained in:

committed by
Scott Nonnenberg

parent
56470d8374
commit
8eed6b62b9
@@ -32,8 +32,9 @@
|
|||||||
const source = sources[i];
|
const source = sources[i];
|
||||||
const timestamps = bySource[source].map(item => item.timestamp);
|
const timestamps = bySource[source].map(item => item.timestamp);
|
||||||
|
|
||||||
try {
|
|
||||||
const c = ConversationController.get(source);
|
const c = ConversationController.get(source);
|
||||||
|
c.queueJob(async () => {
|
||||||
|
try {
|
||||||
const { wrap, sendOptions } = ConversationController.prepareForSend(
|
const { wrap, sendOptions } = ConversationController.prepareForSend(
|
||||||
c.get('id')
|
c.get('id')
|
||||||
);
|
);
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
error && error.stack ? error.stack : error
|
error && error.stack ? error.stack : error
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user