This repository was archived by the owner on Feb 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/components/structures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ Please see LICENSE files in the repository root for full details.
1010 display : flex;
1111 align-items : center;
1212
13+ user-select : none;
14+ cursor : pointer;
15+
1316 .mx_UserRPC_activity {
1417 width : 32 px ;
1518 height : 32 px ;
@@ -18,7 +21,8 @@ Please see LICENSE files in the repository root for full details.
1821 justify-content : center;
1922 align-items : center;
2023
21- background-color : #000 ;
24+ color : #666c75 ;
25+ background-color : #1a1c1e ;
2226 border-radius : 50 % ;
2327
2428 /* crop image to circle */
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ Please see LICENSE files in the repository root for full details.
77
88import React , { useEffect , useState } from 'react' ;
99
10- import { logger } from "matrix-js-sdk/src/logger" ;
10+ // import { logger } from "matrix-js-sdk/src/logger";
11+
12+ import defaultDispatcher from "../../dispatcher/dispatcher" ;
13+ import { Action } from "../../dispatcher/actions" ;
14+ import { UserTab } from "../views/dialogs/UserTab" ;
1115
1216import { BridgeRPC , Activity } from '../../elecord/rpc/BridgeRPC' ;
1317
@@ -33,7 +37,15 @@ const UserRPC: React.FC = () => {
3337
3438 // render user activity
3539 return (
36- < div className = "mx_UserRPC" >
40+ < div
41+ onClick = { ( ) => {
42+ defaultDispatcher . dispatch ( {
43+ action : Action . ViewUserSettings ,
44+ initialTabId : UserTab . RichPresence ,
45+ } ) ;
46+ } }
47+ className = "mx_UserRPC"
48+ >
3749 < div className = "mx_UserRPC_activity" >
3850 { activity ?. application_id && activity . status ? (
3951 < img
You can’t perform that action at this time.
0 commit comments