You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-10-31 01:45:39 +03:00
Add another null guard for member (#7984)
* Add another null guard for member To hopefully fix https://github.com/vector-im/element-web/issues/21319 * Use getSender() Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -114,7 +114,7 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
|||||||
if (SettingsStore.getValue("feature_use_only_current_profiles")) {
|
if (SettingsStore.getValue("feature_use_only_current_profiles")) {
|
||||||
const room = MatrixClientPeg.get().getRoom(mxEvent.getRoomId());
|
const room = MatrixClientPeg.get().getRoom(mxEvent.getRoomId());
|
||||||
if (room) {
|
if (room) {
|
||||||
member = room.getMember(member.userId);
|
member = room.getMember(mxEvent.getSender());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user