mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
refactor(realtime): solve circle dependencies in realtime-user-status-adapter.ts
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
8cd93918e2
commit
e3a3690b58
5 changed files with 259 additions and 191 deletions
|
@ -50,7 +50,11 @@ export class RealtimeConnection {
|
|||
this.realtimeUserStateAdapter = new RealtimeUserStatusAdapter(
|
||||
this.user?.username ?? null,
|
||||
this.getDisplayName(),
|
||||
this,
|
||||
() =>
|
||||
this.realtimeNote
|
||||
.getConnections()
|
||||
.map((connection) => connection.getRealtimeUserStateAdapter()),
|
||||
this.getTransporter(),
|
||||
() => acceptEdits,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue