use lemmy_db_schema::source::private_message::PrivateMessage;
use lemmy_db_views::{local_user_view::LocalUserView, private_message_view::PrivateMessageView};
use lemmy_utils::{location_info, LemmyError};
-use lemmy_websocket::{messages::SendUserRoomMessage, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendUserRoomMessage, LemmyContext, UserOperationCrud};
use url::Url;
pub(crate) async fn receive_create_private_message(
.id;
context.chat_server().do_send(SendUserRoomMessage {
- op: UserOperation::CreatePrivateMessage,
+ op: UserOperationCrud::CreatePrivateMessage,
response: res,
local_recipient_id,
websocket_id: None,
.id;
context.chat_server().do_send(SendUserRoomMessage {
- op: UserOperation::EditPrivateMessage,
+ op: UserOperationCrud::EditPrivateMessage,
response: res,
local_recipient_id,
websocket_id: None,
.id;
context.chat_server().do_send(SendUserRoomMessage {
- op: UserOperation::EditPrivateMessage,
+ op: UserOperationCrud::EditPrivateMessage,
response: res,
local_recipient_id,
websocket_id: None,
.id;
context.chat_server().do_send(SendUserRoomMessage {
- op: UserOperation::EditPrivateMessage,
+ op: UserOperationCrud::EditPrivateMessage,
response: res,
local_recipient_id,
websocket_id: None,