1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Update MemberList on invite permission change

Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
This commit is contained in:
Jaiwanth
2021-05-19 12:38:39 +05:30
parent cf384c2a54
commit 0d8a7eabc7

View File

@@ -196,6 +196,9 @@ export default class MemberList extends React.Component {
event.getType() === "m.room.third_party_invite") { event.getType() === "m.room.third_party_invite") {
this._updateList(); this._updateList();
} }
if (event.getContent().invite !== event.getPrevContent().invite) {
this.forceUpdate();
}
}; };
_updateList = rate_limited_func(() => { _updateList = rate_limited_func(() => {