mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Use new push actions method on client
This commit is contained in:
parent
898737d806
commit
acfe05db9d
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ var MatrixClientPeg = require("../../MatrixClientPeg");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
shouldHighlight: function() {
|
shouldHighlight: function() {
|
||||||
var actions = this.props.mxEvent.getPushActions(MatrixClientPeg.get());
|
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
|
||||||
if (!actions || !actions.tweaks) { return false; }
|
if (!actions || !actions.tweaks) { return false; }
|
||||||
return actions.tweaks.highlight;
|
return actions.tweaks.highlight;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ module.exports = {
|
||||||
|
|
||||||
var hl = 1;
|
var hl = 1;
|
||||||
|
|
||||||
var actions = ev.getPushActions(MatrixClientPeg.get());
|
var actions = MatrixClientPeg.get().getPushActionsForEvent(ev);
|
||||||
if (actions && actions.tweaks && actions.tweaks.highlight) {
|
if (actions && actions.tweaks && actions.tweaks.highlight) {
|
||||||
hl = 2;
|
hl = 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue