API change: Make EventTiles which hold stuff common to all events that appear in a room timeline.

This commit is contained in:
David Baker
2015-10-21 17:50:40 +01:00
parent d4a5ab11d4
commit 549d992293
3 changed files with 36 additions and 23 deletions
-11
View File
@@ -19,16 +19,5 @@ limitations under the License.
var MatrixClientPeg = require("../../MatrixClientPeg");
module.exports = {
shouldHighlight: function() {
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
if (!actions || !actions.tweaks) { return false; }
return actions.tweaks.highlight;
},
getInitialState: function() {
return {
resending: false
};
}
};