1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

rename related id to associated id

This commit is contained in:
Bruno Windels
2019-06-13 11:50:29 +02:00
parent 3ed9b00398
commit 4143a79f7b
3 changed files with 6 additions and 5 deletions

View File

@@ -177,7 +177,8 @@ MatrixScheduler.RETRY_BACKOFF_RATELIMIT = function(event, attempts, err) {
* @see module:scheduler~queueAlgorithm
*/
MatrixScheduler.QUEUE_MESSAGES = function(event) {
if (event.getType() === "m.room.message" || !!event.getRelatedId()) {
// enqueue messages or events that associate with another event (redactions and relations)
if (event.getType() === "m.room.message" || !!event.getAssociatedId()) {
// put these events in the 'message' queue.
return "message";
}