Skip to content

Commit acfe05d

Browse files
committed
Use new push actions method on client
1 parent 898737d commit acfe05d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/controllers/molecules/MessageTile.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var MatrixClientPeg = require("../../MatrixClientPeg");
2020

2121
module.exports = {
2222
shouldHighlight: function() {
23-
var actions = this.props.mxEvent.getPushActions(MatrixClientPeg.get());
23+
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
2424
if (!actions || !actions.tweaks) { return false; }
2525
return actions.tweaks.highlight;
2626
}

‎src/controllers/organisms/RoomList.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = {
6565

6666
var hl = 1;
6767

68-
var actions = ev.getPushActions(MatrixClientPeg.get());
68+
var actions = MatrixClientPeg.get().getPushActionsForEvent(ev);
6969
if (actions && actions.tweaks && actions.tweaks.highlight) {
7070
hl = 2;
7171
}

0 commit comments

Comments
 (0)