We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3b948 commit a0a27b6Copy full SHA for a0a27b6
src/api/messages/deleteMessage.js
@@ -2,6 +2,12 @@
2
import type { ApiResponse, Auth } from '../transportTypes';
3
import { apiPatch } from '../apiFetch';
4
5
+// TODO(#4701): Make an API method for DELETE /messages/{id}. Use it to
6
+// implement the permanent message deletion capability:
7
+// https://zulip.com/help/configure-message-editing-and-deletion
8
+// To do so, we'll need input from realm_delete_own_message_policy,
9
+// realm_message_content_delete_limit_seconds, the user's role, the current
10
+// time, and maybe more; we'll want #3898 if we can.
11
export default async (auth: Auth, id: number): Promise<ApiResponse> =>
12
apiPatch(auth, `messages/${id}`, {
13
content: '',
0 commit comments