[fractal/620-fix-upload] Fix file upload



commit e8cb0149511ecd42fd5a6c3311b7284e39d57bd2
Author: Alexandre Franke <afranke gnome org>
Date:   Sun Apr 19 20:33:55 2020 +0200

    Fix file upload
    
    Closes #620

 fractal-matrix-api/src/backend/room.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/fractal-matrix-api/src/backend/room.rs b/fractal-matrix-api/src/backend/room.rs
index 5d2973cd..0f8f3473 100644
--- a/fractal-matrix-api/src/backend/room.rs
+++ b/fractal-matrix-api/src/backend/room.rs
@@ -555,8 +555,8 @@ pub fn attach_file(
         let query = upload_file(baseu.clone(), tk.clone(), &fname).map(|response| {
             msg.url = Some(response.content_uri.to_string());
             thread::spawn(clone!(msg, tx => move || {
-                let query = redact_msg(baseu, tk, msg);
-                tx.send(BKResponse::SentMsgRedaction(query))
+                let query = send_msg(baseu, tk, msg);
+                tx.send(BKResponse::SentMsg(query))
                     .expect_log("Connection closed");
             }));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]