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

Commit 43ab685

Browse files
committed
fixed bug with User Appearance Settings Tab caused by changes in TextualBody.tsx
1 parent 047f39e commit 43ab685

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
@@ -575,7 +575,7 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
575575
const client = MatrixClientPeg.get();
576576
const room = client.getRoom(mxEvent.getRoomId());
577577
//TODO: Decrypt emotes if encryption is added
578-
let emotesEvent = room.currentState.getStateEvents("m.room.emotes", "");
578+
let emotesEvent = room?.currentState.getStateEvents("m.room.emotes", "");
579579
let rawEmotes = emotesEvent ? (emotesEvent.getContent() || {}) : {};
580580
let finalEmotes = {};
581581
for (let key in rawEmotes) {

0 commit comments

Comments
 (0)