1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Merge pull request #5086 from matrix-org/t3chguy/notifications12

Create Map comparison utilities and convert Hooks to Typescript
This commit is contained in:
Michael Telatynski
2020-08-05 16:28:52 +01:00
committed by GitHub
11 changed files with 86 additions and 29 deletions

View File

@@ -245,6 +245,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
if (doUpdate) {
// We have to break our reference to the room list store if we want to be able to
// diff the object for changes, so do that.
// @ts-ignore - ITagMap is ts-ignored so this will have to be too
const newSublists = objectWithOnly(newLists, newListIds);
const sublists = objectShallowClone(newSublists, (k, v) => arrayFastClone(v));