fix: Changing team settings should update in other tabs

This commit is contained in:
Tom Moor 2021-11-09 17:28:59 -08:00
parent 411a76f9ff
commit e899616081
4 changed files with 18 additions and 4 deletions

View File

@ -243,6 +243,10 @@ class SocketProvider extends React.Component<Props> {
}
}
}
if (event.teamIds) {
await auth.fetch();
}
});
this.socket.on("documents.star", (event) => {

View File

@ -59,9 +59,8 @@ function Features() {
onChange={handleChange}
note={
<Trans>
When enabled multiple people can edit documents at the same time.
Please note that this feature is in beta and currently disables
updating the document via the API.
When enabled multiple people can edit documents at the same time
with shared presence and live cursors.
</Trans>
}
/>

View File

@ -499,6 +499,17 @@ export default class WebsocketsProcessor {
return;
}
case "teams.update": {
return socketio.to(`team-${event.teamId}`).emit("entities", {
event: event.name,
teamIds: [
{
id: event.teamId,
},
],
});
}
default:
}
}

View File

@ -531,7 +531,7 @@
"Your knowledge base will be accessible at": "Your knowledge base will be accessible at",
"Manage optional and beta features. Changing these settings will affect the experience for all team members.": "Manage optional and beta features. Changing these settings will affect the experience for all team members.",
"Collaborative editing": "Collaborative editing",
"When enabled multiple people can edit documents at the same time. Please note that this feature is in beta and currently disables updating the document via the API.": "When enabled multiple people can edit documents at the same time. Please note that this feature is in beta and currently disables updating the document via the API.",
"When enabled multiple people can edit documents at the same time with shared presence and live cursors.": "When enabled multiple people can edit documents at the same time with shared presence and live cursors.",
"New group": "New group",
"Groups can be used to organize and manage the people on your team.": "Groups can be used to organize and manage the people on your team.",
"All groups": "All groups",