mirror of
https://github.com/element-hq/element-web
synced 2024-10-26 20:55:56 +03:00
Merge pull request #1626 from matrix-org/luke/remove-flair-store-super-class
Remove redundant super class EventEmitter for FlairStore
This commit is contained in:
commit
89105aed6b
1 changed files with 1 additions and 3 deletions
|
@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import EventEmitter from 'events';
|
|
||||||
import Promise from 'bluebird';
|
import Promise from 'bluebird';
|
||||||
|
|
||||||
const BULK_REQUEST_DEBOUNCE_MS = 200;
|
const BULK_REQUEST_DEBOUNCE_MS = 200;
|
||||||
|
@ -29,9 +28,8 @@ const GROUP_PROFILES_CACHE_BUST_MS = 1800000; // 30 mins
|
||||||
/**
|
/**
|
||||||
* Stores data used by <Flair/>
|
* Stores data used by <Flair/>
|
||||||
*/
|
*/
|
||||||
class FlairStore extends EventEmitter {
|
class FlairStore {
|
||||||
constructor(matrixClient) {
|
constructor(matrixClient) {
|
||||||
super();
|
|
||||||
this._matrixClient = matrixClient;
|
this._matrixClient = matrixClient;
|
||||||
this._userGroups = {
|
this._userGroups = {
|
||||||
// $userId: ['+group1:domain', '+group2:domain', ...]
|
// $userId: ['+group1:domain', '+group2:domain', ...]
|
||||||
|
|
Loading…
Reference in a new issue