]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/private_message/create.rs
Use audience field to federate items in groups (fixes #2464) (#2584)
[lemmy.git] / crates / api_crud / src / private_message / create.rs
index 84e747ffc199fd400c02b0f4cde9f9d9a2b138d9..35bc09e2291245f7b4c65ffd42f5f369c164edd6 100644 (file)
@@ -13,7 +13,7 @@ use lemmy_api_common::{
 use lemmy_apub::{
   generate_local_apub_endpoint,
   protocol::activities::{
-    create_or_update::private_message::CreateOrUpdatePrivateMessage,
+    create_or_update::chat_message::CreateOrUpdateChatMessage,
     CreateOrUpdateType,
   },
   EndpointType,
@@ -85,7 +85,7 @@ impl PerformCrud for CreatePrivateMessage {
     .await
     .map_err(|e| LemmyError::from_error_message(e, "couldnt_create_private_message"))?;
 
-    CreateOrUpdatePrivateMessage::send(
+    CreateOrUpdateChatMessage::send(
       updated_private_message.into(),
       &local_user_view.person.into(),
       CreateOrUpdateType::Create,