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

rename target id to related id and add jsdoc comments

This commit is contained in:
Bruno Windels
2019-06-07 16:56:50 +02:00
parent 7a10d504b2
commit f1336a5ce7
3 changed files with 18 additions and 6 deletions

View File

@@ -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" || !!event.getTargetId()) {
if (event.getType() === "m.room.message" || !!event.getRelatedId()) {
// put these events in the 'message' queue.
return "message";
}