This repository was archived by the owner on Jun 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { colorMXID } from '../../../util/colorMXID';
1111
1212import initMatrix from '../../../client/initMatrix' ;
1313import { tabText as settingTabText } from '../settings/Settings' ;
14- import { getUserStatus , updateUserStatusIcon } from '../../../util/onlineStatus' ;
14+ import { getUserStatus } from '../../../util/onlineStatus' ;
1515
1616import {
1717 openSettings ,
@@ -60,6 +60,8 @@ function ProfileAvatarMenu() {
6060
6161 if ( customStatusRef && customStatusRef . current && typeof event . msg === 'string' && event . msg . length > 0 ) {
6262 customStatusRef . current . innerHTML = ReactDOMServer . renderToStaticMarkup ( twemojify ( event . msg . substring ( 0 , 100 ) ) ) ;
63+ } else {
64+ customStatusRef . current . innerHTML = ReactDOMServer . renderToStaticMarkup ( twemojify ( user . userId ) ) ;
6365 }
6466
6567 if ( statusRef && statusRef . current && typeof event . status === 'string' && event . status . length > 0 ) {
Original file line number Diff line number Diff line change @@ -379,6 +379,9 @@ function ProfileSection() {
379379 if ( typeof value === 'string' && value . length > 0 ) {
380380 setCustomStatus ( value ) ;
381381 userProfile . msg = value ;
382+ } else {
383+ setCustomStatus ( null ) ;
384+ userProfile . msg = null ;
382385 }
383386
384387 initMatrix . matrixClient . setAccountData ( 'pony.house.profile' , userProfile ) ;
You can’t perform that action at this time.
0 commit comments