mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Hook up CallEvent
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
73c66c36dd
commit
eaa3645238
@ -52,10 +52,7 @@ const eventTileTypes = {
|
|||||||
[EventType.Sticker]: 'messages.MessageEvent',
|
[EventType.Sticker]: 'messages.MessageEvent',
|
||||||
[EventType.KeyVerificationCancel]: 'messages.MKeyVerificationConclusion',
|
[EventType.KeyVerificationCancel]: 'messages.MKeyVerificationConclusion',
|
||||||
[EventType.KeyVerificationDone]: 'messages.MKeyVerificationConclusion',
|
[EventType.KeyVerificationDone]: 'messages.MKeyVerificationConclusion',
|
||||||
[EventType.CallInvite]: 'messages.TextualEvent',
|
[EventType.CallInvite]: 'messages.CallEvent',
|
||||||
[EventType.CallAnswer]: 'messages.TextualEvent',
|
|
||||||
[EventType.CallHangup]: 'messages.TextualEvent',
|
|
||||||
[EventType.CallReject]: 'messages.TextualEvent',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const stateEventTileTypes = {
|
const stateEventTileTypes = {
|
||||||
@ -821,6 +818,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||||||
(eventType === EventType.RoomMessage && msgtype && msgtype.startsWith("m.key.verification")) ||
|
(eventType === EventType.RoomMessage && msgtype && msgtype.startsWith("m.key.verification")) ||
|
||||||
(eventType === EventType.RoomCreate) ||
|
(eventType === EventType.RoomCreate) ||
|
||||||
(eventType === EventType.RoomEncryption) ||
|
(eventType === EventType.RoomEncryption) ||
|
||||||
|
(eventType === EventType.CallInvite) ||
|
||||||
(tileHandler === "messages.MJitsiWidgetEvent");
|
(tileHandler === "messages.MJitsiWidgetEvent");
|
||||||
let isInfoMessage = (
|
let isInfoMessage = (
|
||||||
!isBubbleMessage && eventType !== EventType.RoomMessage &&
|
!isBubbleMessage && eventType !== EventType.RoomMessage &&
|
||||||
|
Loading…
Reference in New Issue
Block a user