Browse code

matrix: Add RPC response on matrix reload success

Olle E. Johansson authored on 03/01/2022 15:00:05
Showing 1 changed files
... ...
@@ -526,11 +526,12 @@ static void matrix_rpc_reload(rpc_t* rpc, void* c)
526 526
 	if(db_reload_matrix() < 0) {
527 527
 		rpc->fault(c, 500, "Reload failed");
528 528
 	}
529
+	rpc->rpl_printf(c, "Ok. Reload successful.");
529 530
 	matrix_db_close();
530 531
 }
531 532
 
532 533
 static const char *matrix_rpc_reload_doc[2] = {
533
-	"reload matrix records from database",
534
+	"Reload matrix records from database",
534 535
 	0
535 536
 };
536 537