add: client streams api

fix: mobile chats ui
This commit is contained in:
trisua 2025-05-01 23:35:40 -04:00
parent 094dd5fdb5
commit 58d206eb81
12 changed files with 152 additions and 19 deletions

View file

@ -125,6 +125,7 @@ macros -%}
<script data-turbo-permanent="true" id="update-seen-script">
document.documentElement.addEventListener("turbo:load", () => {
trigger("me::seen");
trigger("streams::user", ["{{ user.id }}"]);
if (!window.location.pathname.startsWith("/chats/")) {
if (window.socket) {