Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 84d5020

Browse files
committed
fixed bug with User Appearance Settings Tab caused by changes in TextualBody.tsx
1 parent 8a422d8 commit 84d5020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/messages/TextualBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
569569
const client = MatrixClientPeg.get();
570570
const room = client.getRoom(mxEvent.getRoomId());
571571
//TODO: Decrypt emotes if encryption is added
572-
let emotesEvent = room.currentState.getStateEvents("m.room.emotes", "");
572+
let emotesEvent = room?.currentState.getStateEvents("m.room.emotes", "");
573573
let rawEmotes = emotesEvent ? (emotesEvent.getContent() || {}) : {};
574574
let finalEmotes = {};
575575
for (let key in rawEmotes) {

0 commit comments

Comments
 (0)