'use strict' const React = require('react') const ReactDOM = require('react-dom') const create = require('create-react-class') const Promise = require('bluebird') const riot = require('../../lib/riot-utils.js') let Event = create({ displayName: "m.text", render: function() { let event = this.props.event; let eventBody = riot.sanitize(event.content.body) let eventClass = "event" if (event.local) { eventClass += " local" } return