mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 02:41:41 +02:00
fix NPE in guest access
This commit is contained in:
parent
891578d800
commit
a28aab42c4
@ -678,7 +678,7 @@ module.exports = React.createClass({
|
|||||||
// if this is an invite and has the 'direct' hint set, mark it as a DM room now.
|
// if this is an invite and has the 'direct' hint set, mark it as a DM room now.
|
||||||
if (this.state.room) {
|
if (this.state.room) {
|
||||||
const me = this.state.room.getMember(MatrixClientPeg.get().credentials.userId);
|
const me = this.state.room.getMember(MatrixClientPeg.get().credentials.userId);
|
||||||
if (me.membership == 'invite') {
|
if (me && me.membership == 'invite') {
|
||||||
// The 'direct' hihnt is there, so declare that this is a DM room for
|
// The 'direct' hihnt is there, so declare that this is a DM room for
|
||||||
// whoever invited us.
|
// whoever invited us.
|
||||||
if (me.events.member.getContent().is_direct) {
|
if (me.events.member.getContent().is_direct) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user