mirror of https://github.com/vector-im/riot-web
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>pull/21833/head
parent
3426c3c3cd
commit
10c8a31736
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue