mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix(commons): Fix array creation in awareness state request
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
b7b0021ff7
commit
1eeb1dadc4
1 changed files with 4 additions and 3 deletions
|
@ -82,9 +82,10 @@ export abstract class YDocMessageTransporter extends EventEmitter2 {
|
|||
break
|
||||
case MessageType.COMPLETE_AWARENESS_STATE_REQUEST:
|
||||
this.send(
|
||||
encodeAwarenessUpdateMessage(this.awareness, [
|
||||
...this.awareness.getStates().keys()
|
||||
])
|
||||
encodeAwarenessUpdateMessage(
|
||||
this.awareness,
|
||||
Array.from(this.awareness.getStates().keys())
|
||||
)
|
||||
)
|
||||
break
|
||||
case MessageType.AWARENESS_UPDATE:
|
||||
|
|
Loading…
Reference in a new issue