Description
Description
The personnas have their "own" awareness, to be able to attach several personnas to the same shared document in the back-end.
This awareness is initialised when the personna is attached to the document (when opening or creating a chat), but this awareness finally disappear from the list.
Reproduce
It can be observed when logging (front end or back end) the awareness of the document.
Expected behavior
The personnas to stay in the list.
Context
First seen in #1351
Proposed solution
This is probably due to the personnas not updating their states, which make other awareness users think that is disconnected.
Back end removal: https://github.com/y-crdt/pycrdt/blob/e269a3e63ad7986a3349e2d2bc7bd5f0dfca9c79/python/pycrdt/_awareness.py#L90
Front end removal: https://github.com/yjs/y-protocols/blob/2d8cd5c06b3925fbf9b5215dc341f8096a0a8d5c/awareness.js#L71
We should probably renew the local state periodically, like is done for the document awareness (https://github.com/y-crdt/pycrdt/blob/e269a3e63ad7986a3349e2d2bc7bd5f0dfca9c79/python/pycrdt/_awareness.py#L82)