1 import { editListImmutable } from "@utils/helpers";
2 import { PrivateMessageView } from "lemmy-js-client";
4 export default function editPrivateMessage(
5 data: PrivateMessageView,
6 messages: PrivateMessageView[]
7 ): PrivateMessageView[] {
8 return editListImmutable("private_message", data, messages);