Pseudo Collab plugin. It works but with delays

I’ve made this plugin while waiting real collaboration features. It simply warn the user when another user is editing the same page. It works but there’s a delay because it depends a lot on the syncing of files and it also seems to depend on some kind of refresh from logseq (since it was from another logseq instance). I’ve been able to get kinda good enough result with Nextcloud sync.

For now, I will leave it as is but I might make it better if there’s interest for this or if someone has a solution to make this faster.

I think a solution would be to make a Nextcloud app that would be able to receive queries from logseq’s plugin.