Merge pull request #3716 from matrix-org/travis/mjolnir-render
Render policy room event updates in the timeline
This commit is contained in:
commit
633aa59e6c
3 changed files with 110 additions and 0 deletions
|
@ -34,6 +34,7 @@ import SettingsStore from "../../../settings/SettingsStore";
|
|||
import {EventStatus, MatrixClient} from 'matrix-js-sdk';
|
||||
import {formatTime} from "../../../DateUtils";
|
||||
import MatrixClientPeg from '../../../MatrixClientPeg';
|
||||
import {ALL_RULE_TYPES} from "../../../mjolnir/BanList";
|
||||
|
||||
const ObjectUtils = require('../../../ObjectUtils');
|
||||
|
||||
|
@ -69,6 +70,11 @@ const stateEventTileTypes = {
|
|||
'm.room.related_groups': 'messages.TextualEvent',
|
||||
};
|
||||
|
||||
// Add all the Mjolnir stuff to the renderer
|
||||
for (const evType of ALL_RULE_TYPES) {
|
||||
stateEventTileTypes[evType] = 'messages.TextualEvent';
|
||||
}
|
||||
|
||||
function getHandlerTile(ev) {
|
||||
const type = ev.getType();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue