]> Untitled Git - lemmy.git/blobdiff - src/api_routes_websocket.rs
Add Custom Emojis Support (#2616)
[lemmy.git] / src / api_routes_websocket.rs
index fdaba6ba545fd04953cb6c951cc130310866a0f5..b8d8f2c24bbec25bae0cca70fba1f0c0f422d24b 100644 (file)
@@ -32,6 +32,7 @@ use lemmy_api_common::{
     TransferCommunity,
   },
   context::LemmyContext,
+  custom_emoji::{CreateCustomEmoji, DeleteCustomEmoji, EditCustomEmoji},
   person::{
     AddAdmin,
     BanPerson,
@@ -389,6 +390,16 @@ pub async fn match_websocket_operation_crud(
     UserOperationCrud::GetComment => {
       do_websocket_operation_crud::<GetComment>(context, id, op, data).await
     }
+    // Emojis
+    UserOperationCrud::CreateCustomEmoji => {
+      do_websocket_operation_crud::<CreateCustomEmoji>(context, id, op, data).await
+    }
+    UserOperationCrud::EditCustomEmoji => {
+      do_websocket_operation_crud::<EditCustomEmoji>(context, id, op, data).await
+    }
+    UserOperationCrud::DeleteCustomEmoji => {
+      do_websocket_operation_crud::<DeleteCustomEmoji>(context, id, op, data).await
+    }
   }
 }