File tree 1 file changed +9
-7
lines changed
src/components/structures
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -370,20 +370,22 @@ export default class UserMenu extends React.Component<IProps, IState> {
370
370
? toRightOf ( this . state . contextMenuPosition )
371
371
: below ( this . state . contextMenuPosition ) ;
372
372
373
+ const userIdentifierString = UserIdentifierCustomisations . getDisplayUserIdentifier (
374
+ MatrixClientPeg . safeGet ( ) . getSafeUserId ( ) ,
375
+ {
376
+ withDisplayName : true ,
377
+ } ,
378
+ ) ;
379
+
373
380
return (
374
381
< IconizedContextMenu { ...position } onFinished = { this . onCloseMenu } className = "mx_UserMenu_contextMenu" >
375
382
< div className = "mx_UserMenu_contextMenu_header" >
376
383
< div className = "mx_UserMenu_contextMenu_name" >
377
384
< span className = "mx_UserMenu_contextMenu_displayName" >
378
385
{ OwnProfileStore . instance . displayName }
379
386
</ span >
380
- < span className = "mx_UserMenu_contextMenu_userId" >
381
- { UserIdentifierCustomisations . getDisplayUserIdentifier (
382
- MatrixClientPeg . safeGet ( ) . getSafeUserId ( ) ,
383
- {
384
- withDisplayName : true ,
385
- } ,
386
- ) }
387
+ < span className = "mx_UserMenu_contextMenu_userId" title = { userIdentifierString || "" } >
388
+ { userIdentifierString }
387
389
</ span >
388
390
</ div >
389
391
You can’t perform that action at this time.
0 commit comments