Don't pass null / undefined as attribute value
This commit is contained in:
@@ -171,7 +171,8 @@ export class OTelGroupCallMembership {
|
||||
span.setAttribute("matrix.call.target.userId", userId);
|
||||
span.setAttribute("matrix.call.target.deviceId", deviceId);
|
||||
|
||||
const displayName = this.groupCall.room.getMember(userId)?.name;
|
||||
const displayName =
|
||||
this.groupCall.room.getMember(userId)?.name ?? "unknown";
|
||||
span.setAttribute("matrix.call.target.displayName", displayName);
|
||||
this.callsByCallId.set(call.callId, {
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user