The chat view showed what `Event::Chat` reported: no ids, so nothing could be pinned, reacted to or grouped into topics, and avatars were always initials. Drive it from `Event::ChatHistory` instead, which upserts messages by their local id, and keep the old path only for sessions the engine stores no history for (it does not know the server yet). Each tab now holds its messages and rebuilds its lines with `vm::list::sync`, so a reaction changes one row. Around that: the image cache decodes avatars and icons from the engine's cache (`AvatarReady`, `IconReady`), members are grouped by server group with badges and talk power, the member card carries contacts and per-client volume, and file links in a message become cards that can be downloaded. The composer's attach uses xdg-desktop-portal's file chooser, which `voelin-platform` already had ashpd for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
20 lines
303 B
Rust
20 lines
303 B
Rust
//! Slint user interface shared by the desktop binary and the mobile apps.
|
|
|
|
mod app;
|
|
mod appearance;
|
|
mod bind;
|
|
mod chat;
|
|
mod dev;
|
|
mod emoji;
|
|
mod hotkey;
|
|
mod images;
|
|
mod members;
|
|
mod servers;
|
|
mod settings;
|
|
mod settings_page;
|
|
mod streams;
|
|
mod video;
|
|
mod vm;
|
|
|
|
pub use app::{HostedEngine, RunOptions, run};
|