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) {
|
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 {
|
} else {
|
||||||
let sentInvite = false;
|
let sentInvite = false;
|
||||||
let receivedInvite = false;
|
let receivedInvite = false;
|
||||||
|
|
@ -1648,6 +1648,7 @@ async function openProfile(accountId) {
|
||||||
|
|
||||||
clearAction('profile-loading');
|
clearAction('profile-loading');
|
||||||
popupContainer.style.display = "flex";
|
popupContainer.style.display = "flex";
|
||||||
|
popupInner.scrollTop = 0;
|
||||||
popupContainer.offsetHeight;
|
popupContainer.offsetHeight;
|
||||||
popupContainer.classList.add("show");
|
popupContainer.classList.add("show");
|
||||||
isProfileOpen = true;
|
isProfileOpen = true;
|
||||||
|
|
|
||||||
|
|
@ -1593,7 +1593,7 @@ async function openProfile(accountId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasDm) {
|
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 {
|
} else {
|
||||||
let sentInvite = false;
|
let sentInvite = false;
|
||||||
let receivedInvite = false;
|
let receivedInvite = false;
|
||||||
|
|
@ -1648,6 +1648,7 @@ async function openProfile(accountId) {
|
||||||
|
|
||||||
clearAction('profile-loading');
|
clearAction('profile-loading');
|
||||||
popupContainer.style.display = "flex";
|
popupContainer.style.display = "flex";
|
||||||
|
popupInner.scrollTop = 0;
|
||||||
popupContainer.offsetHeight;
|
popupContainer.offsetHeight;
|
||||||
popupContainer.classList.add("show");
|
popupContainer.classList.add("show");
|
||||||
isProfileOpen = true;
|
isProfileOpen = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue