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

Commit

Permalink
fixed bug with User Appearance Settings Tab caused by changes in Text…
Browse files Browse the repository at this point in the history
…ualBody.tsx
  • Loading branch information
nmscode committed Sep 2, 2022
1 parent 047f39e commit 43ab685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/messages/TextualBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
const client = MatrixClientPeg.get();
const room = client.getRoom(mxEvent.getRoomId());
//TODO: Decrypt emotes if encryption is added
let emotesEvent = room.currentState.getStateEvents("m.room.emotes", "");
let emotesEvent = room?.currentState.getStateEvents("m.room.emotes", "");
let rawEmotes = emotesEvent ? (emotesEvent.getContent() || {}) : {};
let finalEmotes = {};
for (let key in rawEmotes) {
Expand Down

0 comments on commit 43ab685

Please sign in to comment.