I’ve got a 1:1 chat working, but the message list behaves oddly:
-
Each new message makes the page longer (no contained scroll area).
-
Reversing sort puts the newest at the top while the composer stays at the bottom (awkward).
-
Limiting items/page size cuts off the newest instead of trimming older ones.
Goal: Standard messenger behavior:
-
Newest message just above the composer (at the bottom)
-
Only the last N messages visible (e.g., 50)
-
Scroll within the chat area
-
Auto-focus/land on the latest
What I tried: Comments/Chat component (sorted both ways), item limits (trim the wrong side).
Question: Is there a best-practice way (Comments/Chat vs a Collection + Query) to keep the newest messages and anchor newest at the bottom? Thanks in advance!