Adds ui support for attachments, results not yet connected to daemon
This commit is contained in:
@@ -53,7 +53,10 @@ public class MainWindow : Adw.ApplicationWindow
|
||||
}
|
||||
}
|
||||
|
||||
private void on_transcript_send(string message) {
|
||||
private void on_transcript_send(TranscriptContainerView view) {
|
||||
var body = view.message_body;
|
||||
var attachment_guids = view.attachment_guids;
|
||||
|
||||
if (transcript_container_view.transcript_view.model == null) {
|
||||
GLib.warning("No conversation selected");
|
||||
return;
|
||||
@@ -66,7 +69,7 @@ public class MainWindow : Adw.ApplicationWindow
|
||||
}
|
||||
|
||||
try {
|
||||
Repository.get_instance().send_message(selected_conversation, message);
|
||||
Repository.get_instance().send_message(selected_conversation, body);
|
||||
} catch (Error e) {
|
||||
GLib.warning("Failed to send message: %s", e.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user