summary refs log tree commit diff
path: root/pages/main
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-11-30 21:32:08 +0200
committerWlodekM <[email protected]>2024-11-30 21:32:08 +0200
commit1f53a4594a148acc6bd9292b91ff2877635e739b (patch)
tree431aa6e79bf3424add54d4b2b377c910db618346 /pages/main
parent522ae475bb28a9746fc675423d119dbfcde70bfd (diff)
a
Diffstat (limited to 'pages/main')
-rw-r--r--pages/main/page.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/main/page.js b/pages/main/page.js
index 928e360..090e314 100644
--- a/pages/main/page.js
+++ b/pages/main/page.js
@@ -98,7 +98,7 @@ export function onload() {
                         .html(md.render(msg?.content))
                     .child('div')
                         .for(msg.attachments, a => {
-                            returnhtml('img').class('attachment').attr('src', a)}
+                            return html('img').class('attachment').attr('src', a)}
                         )
                         .up()
                     .up()
@@ -110,7 +110,7 @@ export function onload() {
     msgArea.innerHTML = "";
     // :+1:
 
-    for (const msg of window.stores.sdlib.messages) {
+    for (const msg of window.stores.sdlib.messages.reverse()) {
         createMessage(msg)
     }
     scrollToBottomOfElement(msgArea.parentElement);