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>
51 lines
1.7 KiB
TOML
51 lines
1.7 KiB
TOML
[package]
|
|
name = "voelin-platform"
|
|
version = "0.1.0"
|
|
description = "Desktop integration: global push-to-talk hotkeys, notifications, app directories, crash reports and third-party notices."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["portal", "x11"]
|
|
# Wayland global shortcuts and the file chooser through xdg-desktop-portal
|
|
# (Linux).
|
|
portal = ["dep:ashpd", "dep:futures-util"]
|
|
# X11 global hotkeys through XInput2 raw events (Linux).
|
|
x11 = ["dep:x11rb"]
|
|
|
|
[dependencies]
|
|
dirs = "6"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["rt", "sync"] }
|
|
tracing = "0.1"
|
|
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
|
ashpd = { version = "0.13", default-features = false, features = ["tokio", "global_shortcuts", "file_chooser"], optional = true }
|
|
futures-util = { version = "0.3", optional = true }
|
|
notify-rust = { version = "4.18", default-features = false, features = ["z-with-tokio"] }
|
|
x11rb = { version = "0.13", features = ["xinput"], optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
notify-rust = { version = "4.18", default-features = false }
|
|
windows = { version = "0.62", features = [
|
|
"Win32_Foundation",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
|
|
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dev-dependencies]
|
|
x11rb = { version = "0.13", features = ["xinput", "xtest"] }
|
|
|
|
[lints]
|
|
workspace = true
|