feat: 🎸 Add related channel information (#162)

* feat: 🎸 Add related channel information
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2023-03-30 18:31:30 -07:00
1 parent b9fea822d0
commit e4944fac89
7 files changed
+64 -36

No files matched your search

@@ -28,7 +28,19 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
return !TYPES_SESSION_RECORDING.includes(this.type);
}
/**
* Returns scope name or scope id from the target that belongs to the session recording.
* @type {string}
*/
get targetScopeDisplayName() {
return this.target?.scope?.name || this.target?.scope?.id;
}
/**
* Returns the user name or user id that belongs to the session recording.
* @type {string}
*/
get userDisplayName() {
return this.user?.name || this.user?.id;
}
}