Add versioning support to collaboration features and API calls
- Adjust logic in socket responses to handle versioning for comments and threads.
This commit is contained in:
@@ -29,7 +29,6 @@ import { SceneProvider } from "../modules/scene/sceneContext";
|
||||
import { getVersionHistoryApi } from "../services/factoryBuilder/versionControl/getVersionHistoryApi";
|
||||
import { useVersionHistoryStore } from "../store/builder/useVersionHistoryStore";
|
||||
import { VersionProvider } from "../modules/builder/version/versionContext";
|
||||
import ThreadChat from "../components/ui/collaboration/ThreadChat";
|
||||
|
||||
const Project: React.FC = () => {
|
||||
let navigate = useNavigate();
|
||||
@@ -47,7 +46,7 @@ const Project: React.FC = () => {
|
||||
const { selectedUser } = useSelectedUserStore();
|
||||
const { isLogListVisible } = useLogger();
|
||||
const { setVersions } = useVersionHistoryStore();
|
||||
const { selectedComment, commentPositionState } = useSelectedComment();
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (!email || !userId) {
|
||||
@@ -132,7 +131,7 @@ const Project: React.FC = () => {
|
||||
<LogList />
|
||||
</RenderOverlay>
|
||||
)}
|
||||
{(commentPositionState !== null || selectedComment !== null) && <ThreadChat />}
|
||||
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user