mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 12:51:32 +03:00
Fix ignoring events
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
4ae92d8adc
commit
31d16d4277
1 changed files with 1 additions and 6 deletions
|
@ -18,11 +18,6 @@ import EventEmitter from "events";
|
|||
import { EventType } from "matrix-js-sdk/src/@types/event";
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
|
||||
const IGNORED_EVENTS = [
|
||||
EventType.CallNegotiate,
|
||||
EventType.CallCandidates,
|
||||
];
|
||||
|
||||
export enum TimelineCallEventStoreEvent {
|
||||
CallsChanged = "calls_changed"
|
||||
}
|
||||
|
@ -75,7 +70,7 @@ export default class TimelineCallEventStore extends EventEmitter {
|
|||
}
|
||||
|
||||
public addEvent(event: MatrixEvent) {
|
||||
if (IGNORED_EVENTS.includes(event.getType())) return;
|
||||
if (!Array.from(EVENT_TYPE_TO_TIMELINE_CALL_STATE.keys()).includes(event.getType())) return;
|
||||
|
||||
const callId = event.getContent().call_id;
|
||||
const date = event.getDate();
|
||||
|
|
Loading…
Reference in a new issue