use lemmy_db_schema::source::community::Community;
use lemmy_db_views_actor::community_view::CommunityView;
use lemmy_utils::LemmyError;
-use lemmy_websocket::{messages::SendCommunityRoomMessage, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendCommunityRoomMessage, LemmyContext, UserOperationCrud};
pub(crate) async fn receive_delete_community(
context: &LemmyContext,
let community_id = res.community_view.community.id;
context.chat_server().do_send(SendCommunityRoomMessage {
- op: UserOperation::EditCommunity,
+ op: UserOperationCrud::EditCommunity,
response: res,
community_id,
websocket_id: None,
let community_id = res.community_view.community.id;
context.chat_server().do_send(SendCommunityRoomMessage {
- op: UserOperation::EditCommunity,
+ op: UserOperationCrud::EditCommunity,
response: res,
community_id,
websocket_id: None,
let community_id = res.community_view.community.id;
context.chat_server().do_send(SendCommunityRoomMessage {
- op: UserOperation::EditCommunity,
+ op: UserOperationCrud::EditCommunity,
response: res,
community_id,
websocket_id: None,
let community_id = res.community_view.community.id;
context.chat_server().do_send(SendCommunityRoomMessage {
- op: UserOperation::EditCommunity,
+ op: UserOperationCrud::EditCommunity,
response: res,
community_id,
websocket_id: None,