[fractal/sync-matrix-sdk] Deduplicate send and manage message
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/sync-matrix-sdk] Deduplicate send and manage message
- Date: Wed, 2 Dec 2020 16:53:25 +0000 (UTC)
commit fa6b637e8d59397c19d9b0047d5ed93f24573521
Author: Alejandro Domínguez <adomu net-c com>
Date: Wed Dec 2 17:46:49 2020 +0100
Deduplicate send and manage message
fractal-gtk/src/appop/message.rs | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/fractal-gtk/src/appop/message.rs b/fractal-gtk/src/appop/message.rs
index 974974b4..5ffc7379 100644
--- a/fractal-gtk/src/appop/message.rs
+++ b/fractal-gtk/src/appop/message.rs
@@ -208,19 +208,7 @@ impl AppOp {
RUNTIME.spawn(attach_file(session_client, msg));
}
_ => {
- RUNTIME.spawn(async move {
- match room::send_msg(session_client, msg).await {
- Ok(evid) => {
- APPOP!(msg_sent, (evid));
- let initial = false;
- let number_tries = 0;
- APPOP!(sync, (initial, number_tries));
- }
- Err(err) => {
- err.handle_error();
- }
- }
- });
+ RUNTIME.spawn(send_msg_and_manage(session_client, msg));
}
}
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]