Stash lodash import optimization

This commit is contained in:
Michael Telatynski 2020-08-28 18:53:43 +01:00
parent 2c20afc047
commit 1fc55b33c1
18 changed files with 25 additions and 28 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
*/
import {MatrixClientPeg} from '../MatrixClientPeg';
import _uniq from "lodash/uniq";
import {uniq} from "lodash";
import {Room} from "matrix-js-sdk/src/matrix";
/**
@ -111,7 +111,7 @@ export default class DMRoomMap {
userToRooms[userId] = [roomId];
} else {
roomIds.push(roomId);
userToRooms[userId] = _uniq(roomIds);
userToRooms[userId] = uniq(roomIds);
}
});
return true;