fix opening dms from profile and profile scroll saving
This commit is contained in:
parent
fb6c8b6ee9
commit
0bdfb7762f
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue