Skip to content

Commit a0a27b6

Browse files
committed
deleteMessage [nfc]: Add TODO for zulip#4701
1 parent ea3b948 commit a0a27b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/api/messages/deleteMessage.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
import type { ApiResponse, Auth } from '../transportTypes';
33
import { apiPatch } from '../apiFetch';
44

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.
511
export default async (auth: Auth, id: number): Promise<ApiResponse> =>
612
apiPatch(auth, `messages/${id}`, {
713
content: '',

0 commit comments

Comments
 (0)