[fractal/sync-matrix-sdk: 73/75] Deduplicate send and manage message
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/sync-matrix-sdk: 73/75] Deduplicate send and manage message
- Date: Tue, 2 Feb 2021 22:47:07 +0000 (UTC)
commit 7a2602467f50398514e947dc4107bbd5d92d30b1
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 3ae44e32..92557f2e 100644
--- a/fractal-gtk/src/appop/message.rs
+++ b/fractal-gtk/src/appop/message.rs
@@ -202,19 +202,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]