-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "Matrix Content Storage" #44
Conversation
const [applicationsFolder, setApplicationsFolder] = useState(''); | ||
const [serviceSpaces, setServiceSpaces] = useState({}); | ||
|
||
const buildRoomObject = useCallback((roomId) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
}); | ||
}, [buildRoomObject, rooms]); | ||
}); | ||
}, [buildRoomObject, rooms]); |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
setDirectMessages(deleteElement(room.roomId)); | ||
} | ||
//@TODO setRoomContents(setMessages(room.roomId)); | ||
const RoomMyMembershipEvent = useCallback((room, membership, prevMembership) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
} | ||
}); | ||
|
||
const AccountDataEvent = useCallback((event) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
hydrateDirectMessages(event.getContent()); | ||
}); | ||
|
||
const RoomTimelineEvent = useCallback((event, room) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
} | ||
}); | ||
|
||
const RoomReceiptEvent = useCallback((event, room) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
} | ||
}); | ||
|
||
const SyncEvent = useCallback((newState, prevState) => { |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
matrixClient.off('Room.receipt', RoomReceiptEvent); | ||
matrixClient.off('sync', SyncEvent); | ||
}; | ||
}, []); |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
logger.debug('Found "Applications" space', { existingApplicationsSpace }); | ||
setApplicationsFolder(existingApplicationsSpace.roomId); | ||
initialSyncDone && lookForApplicationsFolder(); | ||
}, [initialSyncDone]); |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
applicationsFolder && lookForServiceSpaces(); | ||
}, [applicationsFolder]); | ||
applicationsFolder && lookForServiceSpaces(); | ||
}, [applicationsFolder]); |
Check failure
Code scanning / ESLint
verifies the list of dependencies for Hooks like useEffect and similar Error
We can always bring this back if we decide otherwise. But at the moment this is unused and we don't have a plan for actually making use of it.
At the same time removing this option reduces the complexity of
Matrix.js
by a lot.