Merge branch 'develop' into weeman1337/prettier
This commit is contained in:
commit
27c5b793e9
11 changed files with 286 additions and 29 deletions
|
@ -47,7 +47,7 @@ import ViewSourceEvent from "../components/views/messages/ViewSourceEvent";
|
|||
import { shouldDisplayAsBeaconTile } from "../utils/beacon/timeline";
|
||||
import { shouldDisplayAsVoiceBroadcastTile } from "../voice-broadcast/utils/shouldDisplayAsVoiceBroadcastTile";
|
||||
import { ElementCall } from "../models/Call";
|
||||
import { VoiceBroadcastChunkEventType } from "../voice-broadcast";
|
||||
import { shouldDisplayAsVoiceBroadcastStoppedText, VoiceBroadcastChunkEventType } from "../voice-broadcast";
|
||||
|
||||
// Subset of EventTile's IProps plus some mixins
|
||||
export interface EventTileTypeProps {
|
||||
|
@ -230,6 +230,8 @@ export function pickFactory(
|
|||
|
||||
if (shouldDisplayAsVoiceBroadcastTile(mxEvent)) {
|
||||
return MessageEventFactory;
|
||||
} else if (shouldDisplayAsVoiceBroadcastStoppedText(mxEvent)) {
|
||||
return TextualEventFactory;
|
||||
}
|
||||
|
||||
if (SINGULAR_STATE_EVENTS.has(evType) && mxEvent.getStateKey() !== "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue