Compare commits
2 Commits
release/gt
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 469702c065 | |||
| 32d2fdc55f |
@@ -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"
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user