Compare View
Commits (2)
Changes
Showing 2 changed files Side-by-side Diff
gateway/pull.js
... | ... | @@ -124,7 +124,7 @@ function updateTaskOnMatrix(trx_id, rc) { |
124 | 124 | } |
125 | 125 | |
126 | 126 | const pending_with_response_tasks_idx = matrix.sdk_pending_with_response_tasks.indexOf(trx_id); |
127 | - if (pending_with_response_tasks_idx >= 0) { | |
127 | + if (pending_with_response_tasks_idx < 0) { | |
128 | 128 | matrix.sdk_pending_with_response_tasks.push(trx_id); |
129 | 129 | } |
130 | 130 | } |