diff --git a/src/client.js b/src/client.js index 87db5c20a..ecfa98b7d 100644 --- a/src/client.js +++ b/src/client.js @@ -310,7 +310,7 @@ function MatrixClient(opts) { break; } - highlightCount += event.getPushActions().tweaks.highlight ? 1 : 0; + highlightCount += this.getPushActionsForEvent(event).tweaks.highlight ? 1 : 0; } // Note: we don't need to handle 'total' notifications because the counts