From acfe05db9db9ca854b124fa0282182bcac3df8d3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 1 Jul 2015 14:11:23 +0100 Subject: [PATCH] Use new push actions method on client --- src/controllers/molecules/MessageTile.js | 2 +- src/controllers/organisms/RoomList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/molecules/MessageTile.js b/src/controllers/molecules/MessageTile.js index ef56daa2..953e33b5 100644 --- a/src/controllers/molecules/MessageTile.js +++ b/src/controllers/molecules/MessageTile.js @@ -20,7 +20,7 @@ var MatrixClientPeg = require("../../MatrixClientPeg"); module.exports = { shouldHighlight: function() { - var actions = this.props.mxEvent.getPushActions(MatrixClientPeg.get()); + var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent); if (!actions || !actions.tweaks) { return false; } return actions.tweaks.highlight; } diff --git a/src/controllers/organisms/RoomList.js b/src/controllers/organisms/RoomList.js index e4b16260..cf07e96d 100644 --- a/src/controllers/organisms/RoomList.js +++ b/src/controllers/organisms/RoomList.js @@ -65,7 +65,7 @@ module.exports = { var hl = 1; - var actions = ev.getPushActions(MatrixClientPeg.get()); + var actions = MatrixClientPeg.get().getPushActionsForEvent(ev); if (actions && actions.tweaks && actions.tweaks.highlight) { hl = 2; }