mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 14:38:06 +03:00
fix: add collabration name (#879)
This commit is contained in:
parent
53d60a13b2
commit
9d350059d9
@ -176,6 +176,12 @@ export class AffineProvider extends BaseProvider {
|
||||
// @ts-expect-error ignore the type
|
||||
awareness: workspace.awarenessStore.awareness,
|
||||
});
|
||||
workspace.awarenessStore.awareness.setLocalStateField('user', {
|
||||
name: token.user?.name ?? 'other',
|
||||
id: Number(token.user?.id ?? -1),
|
||||
color: '#ffa500',
|
||||
});
|
||||
|
||||
this._wsMap.set(workspace, ws);
|
||||
}
|
||||
return ws;
|
||||
|
Loading…
Reference in New Issue
Block a user