File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export type * from './idTypes';
28
28
*/
29
29
// This is an enum; see discussion on other enums.
30
30
// eslint-disable-next-line ft-flow/type-id-match
31
- export type CustomProfileFieldTypeT = 1 | 2 | 3 | 4 | 5 | 6 | 7 ;
31
+ export type CustomProfileFieldTypeT = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ;
32
32
33
33
/**
34
34
* An enum of all valid values for CustomProfileFieldTypeT.
@@ -47,6 +47,7 @@ export const CustomProfileFieldType = {
47
47
Link : ( 5 : 5 ) ,
48
48
User : ( 6 : 6 ) ,
49
49
ExternalAccount : ( 7 : 7 ) ,
50
+ Pronouns : ( 8 : 8 ) ,
50
51
} ;
51
52
52
53
// Check that the enum indeed has all and only the values of the type.
Original file line number Diff line number Diff line change @@ -204,9 +204,10 @@ function interpretCustomProfileField(
204
204
// https://chat.zulip.org/#narrow/stream/378-api-design/topic/custom.20profile.20fields/near/1387379
205
205
206
206
case 1 : // CustomProfileFieldType.ShortText
207
+ case 8 : // CustomProfileFieldType.Pronouns
207
208
case 2 : // CustomProfileFieldType.LongText
208
- // The web client appears to treat these two cases identically .
209
- // So we do the same.
209
+ // The web client appears to treat LongText identically to ShortText .
210
+ // Pronouns is explicitly meant to display the same as ShortText .
210
211
return { displayType : 'text' , text : value } ;
211
212
212
213
case 3 : {
You can’t perform that action at this time.
0 commit comments