summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-21 11:18:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-21 11:18:13 +0100
commitbf097c9b5b57289e2ab792df9494f4579ce08d6c (patch)
treef2d7fad896455d2e8d00d25b8da1dda3f6e4073c
parenta52e91767eb2cbbac96e3e6d9f14d5034ef14912 (diff)
Post to profile, not to client
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--gui/src/app/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/app/mod.rs b/gui/src/app/mod.rs
index 1580353..f51581b 100644
--- a/gui/src/app/mod.rs
+++ b/gui/src/app/mod.rs
@@ -118,11 +118,11 @@ impl Application for Distrox {
Message::CreatePost => {
if !input_value.is_empty() {
let input = input_value.clone();
- let client = profile.client().clone();
+ let profile = profile.clone();
log::trace!("Posting...");
iced::Command::perform(async move {
log::trace!("Posting: '{}'", input);
- client.post_text_blob(input).await
+ profile.write().await.post_text(input).await
},
|res| match res {
Ok(cid) => Message::PostCreated(cid),