We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdbaa8 commit 6f8952fCopy full SHA for 6f8952f
apps/frontend/src/components/CollaborativeEditor/CollaborativeEditor.tsx
@@ -48,6 +48,7 @@ interface AwarenessUpdate {
48
}
49
50
interface Awareness {
51
+ sessionEnded: boolean;
52
user: {
53
name: string;
54
color: string;
@@ -245,7 +246,7 @@ const CollaborativeEditor = forwardRef(
245
246
const state = provider.awareness
247
.getStates()
248
.get(clientID) as Awareness;
- if (state && state.codeSavedStatus) {
249
+ if (state && state.codeSavedStatus && !state.sessionEnded) {
250
// Display the received status message
251
messageApi.open({
252
type: "success",
0 commit comments