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

Commit

Permalink
Add another null guard for member (#7984)
Browse files Browse the repository at this point in the history
* Add another null guard for member

To hopefully fix element-hq/element-web#21319

* Use getSender()

Co-authored-by: Michael Telatynski <[email protected]>

Co-authored-by: Michael Telatynski <[email protected]>
  • Loading branch information
dbkr and t3chguy authored Mar 8, 2022
1 parent 3426c3c commit 10c8a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/messages/SenderProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class SenderProfile extends React.Component<IProps, IState> {
if (SettingsStore.getValue("feature_use_only_current_profiles")) {
const room = MatrixClientPeg.get().getRoom(mxEvent.getRoomId());
if (room) {
member = room.getMember(member.userId);
member = room.getMember(mxEvent.getSender());
}
}

Expand Down

0 comments on commit 10c8a31

Please sign in to comment.