From e222fb17833ec7e958e2d88cb6f89a78ba53130c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 6 Jun 2019 16:53:24 +0200 Subject: [PATCH] enqueue relations and redactions as well as they might need to wait until their target has been sent --- src/scheduler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.js b/src/scheduler.js index c6e9e4e71..ceba188a8 100644 --- a/src/scheduler.js +++ b/src/scheduler.js @@ -177,7 +177,7 @@ MatrixScheduler.RETRY_BACKOFF_RATELIMIT = function(event, attempts, err) { * @see module:scheduler~queueAlgorithm */ MatrixScheduler.QUEUE_MESSAGES = function(event) { - if (event.getType() === "m.room.message") { + if (event.getType() === "m.room.message" || !!event.getTargetId()) { // put these events in the 'message' queue. return "message"; }