f7support: опрос доски тикетов, скролл чата, непрочитанные

- Периодический опрос списка тикетов (tickets_poll_ms, по умолчанию 3 с), пока вкладка видима.

- Параметр конфига tickets_poll_ms (3000–120000 мс) и data-messages-poll-ms в шаблоне.

- Надёжный скролл вниз при открытии чата и после загрузки вложений.

- Учёт has_unread как true/1/"1"/"true" для индикатора на карточке.
This commit is contained in:
root
2026-05-14 14:52:02 +03:00
parent b52655c26b
commit 866a64d413
3 changed files with 60 additions and 4 deletions
+2 -1
View File
@@ -5,5 +5,6 @@
data-server-address="<?php p($_['serverAddress']); ?>"
data-support-api-base="<?php p($_['supportApiBase']); ?>"
data-support-ws-base="<?php p($_['supportWsBase'] ?? ''); ?>"
data-client-read-receipts="<?php p($_['clientReadReceipts'] ?? '0'); ?>">
data-client-read-receipts="<?php p($_['clientReadReceipts'] ?? '0'); ?>"
data-messages-poll-ms="<?php p($_['ticketsPollMs'] ?? '3000'); ?>">
</div>