Ignore decline events from the local user

This commit is contained in:
Robin
2025-09-05 21:22:32 +02:00
parent 1193a22658
commit 1e32b355ce
2 changed files with 26 additions and 6 deletions

View File

@@ -936,7 +936,8 @@ export class CallViewModel extends ViewModel {
([event]) =>
event.getType() === EventType.RTCDecline &&
event.getRelation()?.rel_type === "m.reference" &&
event.getRelation()?.event_id === notificationEvent.event_id,
event.getRelation()?.event_id === notificationEvent.event_id &&
event.getSender() !== this.userId,
),
),
),