Skip to content

Commit 3e0254f

Browse files
gnpricechrisbobbe
authored andcommitted
topic [nfc]: Mark TODO-server where "subject" can become "topic"
Including in messages' edit history, where the server-side change hasn't yet landed but is expected to soon: zulip/zulip#21309.
1 parent ea803dc commit 3e0254f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/api/messages/sendMessage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default async (
99
params: {|
1010
type: 'private' | 'stream',
1111
to: string,
12+
// TODO(server-2.0): Say "topic", not "subject"
1213
subject?: string,
1314
content: string,
1415
localId?: number,

src/api/messages/updateMessage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { apiPatch } from '../apiFetch';
66
export default async (
77
auth: Auth,
88
params: $ReadOnly<{|
9+
// TODO(server-2.0): Say "topic", not "subject"
910
subject?: string,
1011
propagate_mode?: boolean,
1112
content?: string,

src/api/modelTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ export type MessageEdit = $ReadOnly<{|
487487
prev_content?: string,
488488
prev_rendered_content?: string,
489489
prev_rendered_content_version?: number,
490+
// TODO(server-5.0): Say "topic", not "subject"
490491
prev_subject?: string,
491492
timestamp: number,
492493
user_id: UserId,

0 commit comments

Comments
 (0)