mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Consider the lack of membership event as not being in the room
This commit is contained in:
parent
d4166477f0
commit
04bfccc95f
@ -237,7 +237,9 @@ export class RiotHomeComponent {
|
||||
|
||||
if (integration.category === "bot") {
|
||||
const state = await this.scalar.getMembershipState(this.roomId, (<FE_SimpleBot>integration).userId);
|
||||
integration._inRoom = ["join", "invite"].indexOf(state.response.membership) !== -1;
|
||||
if (state && state.response && state.response.membership) {
|
||||
integration._inRoom = ["join", "invite"].indexOf(state.response.membership) !== -1;
|
||||
} else integration._inRoom = false;
|
||||
}
|
||||
|
||||
return Promise.all(promises).then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user