Compare commits
No commits in common. "cfef57d8a187e37f949b999e5b6c0bffeae5af92" and "80be74782c762ccc0c3b012a52d43359e5ee481a" have entirely different histories.
cfef57d8a1
...
80be74782c
2 changed files with 12 additions and 16 deletions
|
|
@ -19,6 +19,17 @@ jobs:
|
||||||
VERSION=${GITHUB_REF_NAME#v}
|
VERSION=${GITHUB_REF_NAME#v}
|
||||||
echo "Bumping version to $VERSION"
|
echo "Bumping version to $VERSION"
|
||||||
npm version $VERSION --no-git-tag-version
|
npm version $VERSION --no-git-tag-version
|
||||||
|
|
||||||
|
# Configure Git
|
||||||
|
git config user.name "Forgejo Actions"
|
||||||
|
git config user.email "actions@noreply.flegr.me"
|
||||||
|
|
||||||
|
# Commit and push back to main if version changed
|
||||||
|
if [ -n "$(git status --porcelain package.json)" ]; then
|
||||||
|
git add package.json package-lock.json
|
||||||
|
git commit -m "chore: bump version to $VERSION [skip ci]"
|
||||||
|
git push origin HEAD:main
|
||||||
|
fi
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run dist:linux
|
- run: npm run dist:linux
|
||||||
- name: Build Windows installer with 32-bit Wine prefix
|
- name: Build Windows installer with 32-bit Wine prefix
|
||||||
|
|
|
||||||
|
|
@ -354,11 +354,6 @@ function formatDate(isoString) {
|
||||||
return d.toLocaleDateString();
|
return d.toLocaleDateString();
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollMessagesToBottom() {
|
|
||||||
if (!el.messageList) return;
|
|
||||||
el.messageList.scrollTop = el.messageList.scrollHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
let audioCtx = null;
|
let audioCtx = null;
|
||||||
|
|
||||||
// Global interaction listener to unlock AudioContext (autoplay policy)
|
// Global interaction listener to unlock AudioContext (autoplay policy)
|
||||||
|
|
@ -633,17 +628,7 @@ function renderMessages(messages) {
|
||||||
state.lastMessageId = messages[0].id;
|
state.lastMessageId = messages[0].id;
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollMessagesToBottom();
|
el.messageList.scrollTop = el.messageList.scrollHeight;
|
||||||
requestAnimationFrame(() => {
|
|
||||||
scrollMessagesToBottom();
|
|
||||||
});
|
|
||||||
|
|
||||||
// GIF/image height resolves after initial paint; keep chat pinned to latest.
|
|
||||||
for (const gifImage of el.messageList.querySelectorAll(".msg-gif img")) {
|
|
||||||
if (gifImage.complete) continue;
|
|
||||||
gifImage.addEventListener("load", scrollMessagesToBottom, { once: true });
|
|
||||||
gifImage.addEventListener("error", scrollMessagesToBottom, { once: true });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderMembers() {
|
function renderMembers() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue