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") {
|
if (integration.category === "bot") {
|
||||||
const state = await this.scalar.getMembershipState(this.roomId, (<FE_SimpleBot>integration).userId);
|
const state = await this.scalar.getMembershipState(this.roomId, (<FE_SimpleBot>integration).userId);
|
||||||
|
if (state && state.response && state.response.membership) {
|
||||||
integration._inRoom = ["join", "invite"].indexOf(state.response.membership) !== -1;
|
integration._inRoom = ["join", "invite"].indexOf(state.response.membership) !== -1;
|
||||||
|
} else integration._inRoom = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.all(promises).then(() => {
|
return Promise.all(promises).then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user