add message read/unread render & fix profile display
All checks were successful
Android Build / publish (push) Successful in 48s
Linux Build / publish (push) Successful in 52s

This commit is contained in:
olcxja 2026-07-04 17:24:46 +02:00
commit 68ac0beedf
14 changed files with 290 additions and 38 deletions

View file

@ -157,9 +157,9 @@
}
}
async function refreshDms(waittime = 0) {
async function refreshDms(waittime = 0, showLoading = true) {
try {
showAction("action.dm.fetch", "dmrefresh");
if (showLoading) showAction("action.dm.fetch", "dmrefresh");
await delay(waittime);
if (window.cachedDms && typeof renderDms === 'function') {
await renderDms(window.cachedDms);
@ -169,10 +169,10 @@
if (typeof renderDms === 'function') {
await renderDms(res);
}
clearAction("dmrefresh");
if (showLoading) clearAction("dmrefresh");
}
catch (e) {
clearAction("dmrefresh");
if (showLoading) clearAction("dmrefresh");
showBlahNotification("error:dm.refresh.failed");
}
}