mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Fix _groupFilterOrderStoreToken naming
This commit is contained in:
parent
43208c01a1
commit
25db3ac6aa
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ class GroupFilterPanel extends React.Component {
|
||||||
this.context.on("Group.myMembership", this._onGroupMyMembership);
|
this.context.on("Group.myMembership", this._onGroupMyMembership);
|
||||||
this.context.on("sync", this._onClientSync);
|
this.context.on("sync", this._onClientSync);
|
||||||
|
|
||||||
this._GroupFilterOrderStoreToken = GroupFilterOrderStore.addListener(() => {
|
this._groupFilterOrderStoreToken = GroupFilterOrderStore.addListener(() => {
|
||||||
if (this.unmounted) {
|
if (this.unmounted) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -61,8 +61,8 @@ class GroupFilterPanel extends React.Component {
|
||||||
this.unmounted = true;
|
this.unmounted = true;
|
||||||
this.context.removeListener("Group.myMembership", this._onGroupMyMembership);
|
this.context.removeListener("Group.myMembership", this._onGroupMyMembership);
|
||||||
this.context.removeListener("sync", this._onClientSync);
|
this.context.removeListener("sync", this._onClientSync);
|
||||||
if (this._GroupFilterOrderStoreToken) {
|
if (this._groupFilterOrderStoreToken) {
|
||||||
this._GroupFilterOrderStoreToken.remove();
|
this._groupFilterOrderStoreToken.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue