From 479caa3945b86641b6d30ff853c5bbb18cb14e35 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 18 Jun 2020 09:55:02 +0200 Subject: [PATCH] Ready to implement --- src/controllers/conversations_controller.rs | 7 +++++++ src/controllers/routes.rs | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/controllers/conversations_controller.rs b/src/controllers/conversations_controller.rs index 5f8759e..4355220 100644 --- a/src/controllers/conversations_controller.rs +++ b/src/controllers/conversations_controller.rs @@ -154,4 +154,11 @@ pub fn find_private(r: &mut HttpRequestHandler) -> RequestResult { } r.set_response(ResFindPrivateConversations::new(list)) +} + +/// DEPRECATED : refresh current user conversations +/// +/// This method was used only by ComunicWeb before the introduction of WebSockets +pub fn refresh_list(r: &mut HttpRequestHandler) -> RequestResult { + r.success("Can implement") } \ No newline at end of file diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 9c0e5ca..6910727 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -100,6 +100,8 @@ pub fn get_routes() -> Vec { Route::post("/conversations/getPrivate", Box::new(conversations_controller::find_private)), + Route::post("/conversations/refresh", Box::new(conversations_controller::refresh_list)), + // Virtual directory controller Route::post("/user/findbyfolder", Box::new(virtual_directory_controller::find_user)),