only show redacted messages
This commit is contained in:
parent
a78e9af8fc
commit
b05345ee27
1 changed files with 3 additions and 2 deletions
|
@ -32,13 +32,14 @@ export function tilesCreator(baseOptions) {
|
||||||
const options = Object.assign({entry, emitUpdate}, baseOptions);
|
const options = Object.assign({entry, emitUpdate}, baseOptions);
|
||||||
if (entry.isGap) {
|
if (entry.isGap) {
|
||||||
return new GapTile(options);
|
return new GapTile(options);
|
||||||
} else if (entry.isRedacted) {
|
|
||||||
return new RedactedTile(options);
|
|
||||||
} else if (entry.isPending && entry.pendingEvent.isMissingAttachments) {
|
} else if (entry.isPending && entry.pendingEvent.isMissingAttachments) {
|
||||||
return new MissingAttachmentTile(options);
|
return new MissingAttachmentTile(options);
|
||||||
} else if (entry.eventType) {
|
} else if (entry.eventType) {
|
||||||
switch (entry.eventType) {
|
switch (entry.eventType) {
|
||||||
case "m.room.message": {
|
case "m.room.message": {
|
||||||
|
if (entry.isRedacted) {
|
||||||
|
return new RedactedTile(options);
|
||||||
|
}
|
||||||
const content = entry.content;
|
const content = entry.content;
|
||||||
const msgtype = content && content.msgtype;
|
const msgtype = content && content.msgtype;
|
||||||
switch (msgtype) {
|
switch (msgtype) {
|
||||||
|
|
Reference in a new issue