aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-08-27 14:57:02 +0200
committerfiaxh <git@mx.ax.lt>2018-08-31 16:26:23 +0200
commit0e41fb3294271fc271ac8d24c1871fbea27e2ba4 (patch)
treed30716ccb4f930e6d57b6ac878eb4deb2f988d90 /plugins/http-files/src/manager.vala
parentecb18afdb51b3230ea451a27a5b345cf5100f02e (diff)
downloaddino-0e41fb3294271fc271ac8d24c1871fbea27e2ba4.tar.gz
dino-0e41fb3294271fc271ac8d24c1871fbea27e2ba4.zip
Add `hidden` column to content_item table
Diffstat (limited to 'plugins/http-files/src/manager.vala')
-rw-r--r--plugins/http-files/src/manager.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/http-files/src/manager.vala b/plugins/http-files/src/manager.vala
index 9faa8933..78697f9c 100644
--- a/plugins/http-files/src/manager.vala
+++ b/plugins/http-files/src/manager.vala
@@ -40,6 +40,11 @@ public class Manager : StreamInteractionModule, FileSender, Object {
message.encryption = Encryption.NONE;
stream_interactor.get_module(MessageProcessor.IDENTITY).send_message(message, conversation);
file_transfer.info = message.id.to_string();
+
+ ContentItem? content_item = stream_interactor.get_module(ContentItemStore.IDENTITY).get_item(conversation, 1, message.id);
+ if (content_item != null) {
+ stream_interactor.get_module(ContentItemStore.IDENTITY).set_item_hide(content_item, true);
+ }
},
(stream, error_str) => {
print(@"Failed getting upload url + $error_str\n");