mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-30 18:02:50 -06:00
feat: implement AI improvements
This commit is contained in:
parent
2f78fa1106
commit
6edc50203a
|
|
@ -106,6 +106,12 @@ async function consumeAcceptInvite(inviteId) {
|
||||||
try {
|
try {
|
||||||
const result = await api.acceptInvite(inviteId);
|
const result = await api.acceptInvite(inviteId);
|
||||||
|
|
||||||
|
// Stash a toast message to show after reload.
|
||||||
|
localStorage.setItem(PENDING_INVITE_TOAST_KEY, JSON.stringify({
|
||||||
|
message: t('accept.success', { workspace: result?.workspace_name || '' }),
|
||||||
|
type: 'success'
|
||||||
|
}));
|
||||||
|
|
||||||
// Switch to the joined workspace. New JWT carries the workspace context;
|
// Switch to the joined workspace. New JWT carries the workspace context;
|
||||||
// reload picks it up for sidebar /me + socket rooms + data fetches. If
|
// reload picks it up for sidebar /me + socket rooms + data fetches. If
|
||||||
// the switch fails, log and reload anyway - the membership was created
|
// the switch fails, log and reload anyway - the membership was created
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue