Skip to content

Commit

Permalink
undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Jan 3, 2025
1 parent da04619 commit 0bfd36d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/livekit-rtc/src/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//
// SPDX-License-Identifier: Apache-2.0
import { FfiClient, FfiHandle } from './ffi_client.js';
import type {
import {
DisconnectReason,
OwnedParticipant,
ParticipantInfo,
ParticipantKind,
type OwnedParticipant,
type ParticipantInfo,
type ParticipantKind,
} from './proto/participant_pb.js';
import type {
PublishDataCallback,
Expand Down Expand Up @@ -102,6 +102,9 @@ export abstract class Participant {
}

get disconnectReason(): DisconnectReason | undefined {
if (this.info.disconnectReason === DisconnectReason.UNKNOWN_REASON) {
return undefined;
}
return this.info.disconnectReason;
}
}
Expand Down

0 comments on commit 0bfd36d

Please sign in to comment.