fix decline event type

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-08-26 19:07:52 +02:00
parent a91c71a8e4
commit fe65c1f4da
3 changed files with 4 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ import {
import {
ClientEvent,
EventTimelineSetHandlerMap,
EventType,
RoomEvent,
RoomStateEvent,
SyncState,
@@ -1000,8 +1001,7 @@ export class CallViewModel extends ViewModel {
RoomEvent.Timeline,
).pipe(
map(([event]) => {
// TODO use correct decline event type enum.
if (event.getType() === "m.rtc.decline") return event;
if (event.getType() === EventType.RTCDecline) return event;
else return null;
}),
startWith(null),