You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-13 19:42:25 +03:00
hopefully fix invite_room_state as per https://github.com/vector-im/riot-web/issues/7229
This commit is contained in:
@@ -1141,7 +1141,10 @@ Room.prototype.recalculate = function() {
|
||||
"m.room.member", this.myUserId,
|
||||
);
|
||||
if (membershipEvent && membershipEvent.getContent().membership === "invite") {
|
||||
const strippedStateEvents = membershipEvent.event.invite_room_state || [];
|
||||
const strippedStateEvents = (
|
||||
membershipEvent.event.unsigned ?
|
||||
membershipEvent.event.unsigned.invite_room_state :
|
||||
[]) || [];
|
||||
utils.forEach(strippedStateEvents, function(strippedEvent) {
|
||||
const existingEvent = self.currentState.getStateEvents(
|
||||
strippedEvent.type, strippedEvent.state_key,
|
||||
|
Reference in New Issue
Block a user