feat: implement room list reordering and animation hooks; add scroll to latest behavior settings

This commit is contained in:
2026-04-23 14:53:00 +10:00
parent 643608f25d
commit 35ccdc0a22
9 changed files with 414 additions and 32 deletions

View File

@@ -15,6 +15,12 @@ export enum EmojiStyle {
Twemoji = 'twemoji',
}
export enum ScrollToLatestBehavior {
Always = 'always',
Never = 'never',
OnNewMessage = 'onNewMessage',
}
export type CallPanelDockPosition = 'right' | 'sidebar';
export interface Settings {
@@ -56,6 +62,8 @@ export interface Settings {
developerTools: boolean;
autoJoinSpaceRooms: boolean;
scrollToLatestBehavior: ScrollToLatestBehavior;
}
const defaultSettings: Settings = {
@@ -97,6 +105,8 @@ const defaultSettings: Settings = {
developerTools: false,
autoJoinSpaceRooms: true,
scrollToLatestBehavior: ScrollToLatestBehavior.Always,
};
export const getSettings = () => {