mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
brevity
This commit is contained in:
parent
f6957278c3
commit
1258aaee7c
@ -354,7 +354,7 @@ export class Room extends EventEmitter {
|
|||||||
let emitChange = false;
|
let emitChange = false;
|
||||||
if (summaryChanges) {
|
if (summaryChanges) {
|
||||||
// if we joined the room, we can't have an invite anymore
|
// if we joined the room, we can't have an invite anymore
|
||||||
if (summaryChanges.membership === "join" && this._summary.data.membership !== "join") {
|
if (summaryChanges.membership === "join" && this.membership !== "join") {
|
||||||
this._invite = null;
|
this._invite = null;
|
||||||
}
|
}
|
||||||
this._summary.applyChanges(summaryChanges);
|
this._summary.applyChanges(summaryChanges);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user