Private
Public Access
1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
469702c065 need to make this more automatic...
All checks were successful
Core RPM Release / build-core-rpm-release (push) Successful in 8m53s
2026-06-15 01:44:05 -07:00
32d2fdc55f kptui: update for new events
Some checks failed
Core RPM Release / build-core-rpm-release (push) Failing after 11m50s
2026-06-15 01:29:09 -07:00
2 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "kordophoned" name = "kordophoned"
version = "1.3.3" version = "1.3.5"
edition = "2021" edition = "2021"
license = "GPL-3.0" license = "GPL-3.0"
description = "Client daemon for the Kordophone chat protocol" description = "Client daemon for the Kordophone chat protocol"

View File

@@ -394,12 +394,38 @@ fn run_app(
app.refresh_messages_in_flight = true; app.refresh_messages_in_flight = true;
} }
} }
daemon::Event::MarkedRead => {} daemon::Event::MarkedRead
| daemon::Event::ConversationListSyncTriggered
| daemon::Event::AllConversationsSyncTriggered
| daemon::Event::AttachmentDownloadQueued { .. }
| daemon::Event::AttachmentUploadQueued { .. }
| daemon::Event::AttachmentUploaded { .. }
| daemon::Event::AttachmentInfo { .. }
| daemon::Event::SettingsLoaded(_)
| daemon::Event::SettingsSaved => {}
daemon::Event::ConversationSyncTriggered { conversation_id } => { daemon::Event::ConversationSyncTriggered { conversation_id } => {
if app.active_conversation_id.as_deref() == Some(conversation_id.as_str()) { if app.active_conversation_id.as_deref() == Some(conversation_id.as_str()) {
app.status = "Syncing…".to_string(); app.status = "Syncing…".to_string();
} }
} }
daemon::Event::AttachmentDownloaded { .. } => {
if let Some(cid) = app.active_conversation_id.clone() {
if !app.refresh_messages_in_flight {
request_tx
.send(daemon::Request::RefreshMessages {
conversation_id: cid,
})
.ok();
app.refresh_messages_in_flight = true;
}
}
}
daemon::Event::AttachmentDownloadFailed {
attachment_guid,
error,
} => {
app.status = format!("Attachment {attachment_guid} failed: {error}");
}
daemon::Event::ConversationsUpdated => { daemon::Event::ConversationsUpdated => {
if !app.refresh_conversations_in_flight { if !app.refresh_conversations_in_flight {
request_tx.send(daemon::Request::RefreshConversations).ok(); request_tx.send(daemon::Request::RefreshConversations).ok();