Highlight messages using new push rules support in js sdk
This commit is contained in:
parent
9aa9a60333
commit
57ba816919
3 changed files with 13 additions and 1 deletions
|
@ -16,6 +16,13 @@ limitations under the License.
|
|||
|
||||
'use strict';
|
||||
|
||||
var MatrixClientPeg = require("../../MatrixClientPeg");
|
||||
|
||||
module.exports = {
|
||||
shouldHighlight: function() {
|
||||
var actions = this.props.mxEvent.getPushActions(MatrixClientPeg.get());
|
||||
if (!actions || !actions.tweaks) { return false; }
|
||||
return actions.tweaks.highlight;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue