Skip to content

Commit f07f693

Browse files
committed
Handle undefined session IDs.
1 parent 6436f50 commit f07f693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sessions/softphone-session-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class SoftphoneSessionHandler extends BaseSessionHandler {
185185
getActiveConversations (): IActiveConversationDescription[] {
186186
const currentConversations = this.lastEmittedSdkConversationEvent?.current || [];
187187

188-
return currentConversations.map(currentConvo => ({ conversationId: currentConvo.conversationId, sessionId: currentConvo.session.id, sessionType: this.sessionType }));
188+
return currentConversations.map(currentConvo => ({ conversationId: currentConvo.conversationId, sessionId: currentConvo?.session.id, sessionType: this.sessionType }));
189189
}
190190

191191
handleSoftphoneConversationUpdate (update: ConversationUpdate, participant: IConversationParticipantFromEvent, callState: ICallStateFromParticipant, session?: IExtendedMediaSession): void {

0 commit comments

Comments
 (0)