fix opening dms from profile and profile scroll saving
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m2s

This commit is contained in:
olcxja 2026-07-14 17:23:10 +02:00
commit 0bdfb7762f
2 changed files with 4 additions and 2 deletions

View file

@ -1593,7 +1593,7 @@ async function openProfile(accountId) {
}
if (hasDm) {
actionBtnHtml = `<button class="profile-action-btn" onclick="openDm('${dmRoomId}', '${profileName}', '${accountId}'); closeProfile();">${processBlah('action.open.dm')}</button>`;
actionBtnHtml = `<button class="profile-action-btn" onclick="openDm('${dmRoomId}', '${nameWithHost}', '${accountId}'); closeProfile();">${processBlah('action.open.dm')}</button>`;
} else {
let sentInvite = false;
let receivedInvite = false;
@ -1648,6 +1648,7 @@ async function openProfile(accountId) {
clearAction('profile-loading');
popupContainer.style.display = "flex";
popupInner.scrollTop = 0;
popupContainer.offsetHeight;
popupContainer.classList.add("show");
isProfileOpen = true;

View file

@ -1593,7 +1593,7 @@ async function openProfile(accountId) {
}
if (hasDm) {
actionBtnHtml = `<button class="profile-action-btn" onclick="openDm('${dmRoomId}', '${profileName}', '${accountId}'); closeProfile();">${processBlah('action.open.dm')}</button>`;
actionBtnHtml = `<button class="profile-action-btn" onclick="openDm('${dmRoomId}', '${nameWithHost}', '${accountId}'); closeProfile();">${processBlah('action.open.dm')}</button>`;
} else {
let sentInvite = false;
let receivedInvite = false;
@ -1648,6 +1648,7 @@ async function openProfile(accountId) {
clearAction('profile-loading');
popupContainer.style.display = "flex";
popupInner.scrollTop = 0;
popupContainer.offsetHeight;
popupContainer.classList.add("show");
isProfileOpen = true;