From 575622c5228fbb195d50d46683c2a4a9ee10fc02 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 13 Feb 2025 21:37:40 -0500 Subject: [PATCH] ssb: Did that from the wrong thread. --- src/ssb.rpc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index deeb55708..006c0c0f3 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -1769,10 +1769,6 @@ static void _tf_ssb_rpc_invite_use_work(tf_ssb_connection_t* connection, void* u { tf_ssb_db_get_latest_message_by_author(ssb, work->pub, &work->previous_sequence, work->previous_id, sizeof(work->previous_id)); } - else - { - tf_ssb_connection_close(connection, "Invite not accepted."); - } } static void _tf_ssb_invite_use_message_store_callback(const char* id, bool verified, bool is_new, void* user_data) @@ -1826,6 +1822,7 @@ static void _tf_ssb_rpc_invite_use_after_work(tf_ssb_connection_t* connection, i { tf_ssb_connection_rpc_send( connection, k_ssb_rpc_flag_json | k_ssb_rpc_flag_end_error, -work->request_number, NULL, (const uint8_t*)"false", strlen("false"), NULL, NULL, NULL); + tf_ssb_connection_close(connection, "Invite not accepted."); } }