@@ -65,6 +65,7 @@ function renderSidebarOwnerFilter(
6565 owners : readonly SessionOwnerOption [ ] ,
6666 ownerFilterId : string | null ,
6767 involvingMe : boolean ,
68+ selfOwnerId : string | null ,
6869) {
6970 if ( owners . length === 0 ) {
7071 return nothing ;
@@ -86,7 +87,10 @@ function renderSidebarOwnerFilter(
8687 renderSidebarMenuRadioItem ( {
8788 value : `owner:${ owner . id } ` ,
8889 checked : ownerFilterId === owner . id ,
89- label : owner . label ?? owner . id ,
90+ label :
91+ owner . id === selfOwnerId
92+ ? t ( "sessionsView.ownerYou" , { name : owner . label ?? owner . id } )
93+ : ( owner . label ?? owner . id ) ,
9094 owner,
9195 } ) ,
9296 ) }
@@ -193,6 +197,7 @@ export function renderSidebarCatalogViewMenu(params: {
193197 owners : readonly SessionOwnerOption [ ] ;
194198 ownerFilterId : string | null ;
195199 involvingMe : boolean ;
200+ selfOwnerId : string | null ;
196201 onGroupingChange : ( grouping : CatalogProjectGrouping ) => void ;
197202 onOwnerFilterChange : ( ownerId : string | null , involvingMe ?: boolean ) => void ;
198203 onHide : ( ) => void ;
@@ -244,7 +249,12 @@ export function renderSidebarCatalogViewMenu(params: {
244249 label : option . label ,
245250 } ) ,
246251 ) }
247- ${ renderSidebarOwnerFilter ( params . owners , params . ownerFilterId , params . involvingMe ) }
252+ ${ renderSidebarOwnerFilter (
253+ params . owners ,
254+ params . ownerFilterId ,
255+ params . involvingMe ,
256+ params . selfOwnerId ,
257+ ) }
248258 < div class ="session-menu__separator " role ="separator "> </ div >
249259 < wa-dropdown-item class ="sidebar-session-sort-menu__item " value ="hide-catalog ">
250260 < span class ="session-menu__text "> ${ t ( "chat.sidebar.hideFromSidebar" ) } </ span >
@@ -267,6 +277,7 @@ export function renderSidebarSessionSortMenu(params: {
267277 owners : readonly SessionOwnerOption [ ] ;
268278 ownerFilterId : string | null ;
269279 involvingMe : boolean ;
280+ selfOwnerId : string | null ;
270281 onGroupingChange : ( grouping : SidebarSessionsGrouping ) => void ;
271282 onSortModeChange : ( mode : SidebarSessionSortMode ) => void ;
272283 onStatusFilterChange : ( statusFilter : SidebarSessionStatusFilter ) => void ;
@@ -353,7 +364,12 @@ export function renderSidebarSessionSortMenu(params: {
353364 : t ( "sessionsView.all" ) ,
354365 } ) ,
355366 ) }
356- ${ renderSidebarOwnerFilter ( params . owners , params . ownerFilterId , params . involvingMe ) }
367+ ${ renderSidebarOwnerFilter (
368+ params . owners ,
369+ params . ownerFilterId ,
370+ params . involvingMe ,
371+ params . selfOwnerId ,
372+ ) }
357373 < div class ="session-menu__separator " role ="separator "> </ div >
358374 < wa-dropdown-item
359375 class ="sidebar-session-sort-menu__item "
0 commit comments