@@ -598,6 +598,14 @@ export type InitialDataUpdateMessageFlags = $ReadOnly<{|
598
598
| } > ,
599
599
| } > ;
600
600
601
+ // Assumes FL 89+, because servers added user_settings to the /register
602
+ // response in FL 89.
603
+ //
604
+ // Current to FL 152; property ordering follows the /register doc. See the
605
+ // "Current to" note on the InitialDataUserSettings type and update that as
606
+ // needed too.
607
+ //
608
+ // TODO(server-5.0): Remove FL 89+ comment.
601
609
export type UserSettings = { |
602
610
+ twenty_four_hour_time : boolean ,
603
611
+ dense_mode : boolean ,
@@ -611,14 +619,18 @@ export type UserSettings = {|
611
619
+ display_emoji_reaction_users ?: boolean ,
612
620
613
621
+ default_language : string ,
614
- + default_view : string ,
622
+ + default_view : ' recent_topics ' | 'all_messages' ,
615
623
616
624
// TODO(server-5.0): New in FL 107.
617
625
+ escape_navigates_to_default_view ?: boolean ,
618
626
619
627
+ left_side_userlist : boolean ,
620
628
+ emojiset : 'google ' | 'google-blob' | 'twitter' | 'text' ,
621
629
+ demote_inactive_streams : 1 | 2 | 3 ,
630
+
631
+ // TODO(server-6.0): New in FL 141.
632
+ + user_list_style : 1 | 2 | 3 ,
633
+
622
634
+ timezone : string ,
623
635
+ enter_sends : boolean ,
624
636
+ enable_drafts_synchronization : boolean ,
@@ -660,9 +672,14 @@ export type UserSettings = {|
660
672
*
661
673
* Replaces various toplevel properties in the register response; see #4933.
662
674
*/
663
- // Current to FL 129; property ordering follows the doc.
675
+ // Assumes FL 89+ because this was added in FL 89.
676
+ //
677
+ // Current to FL 152. See the "Current to" note on the UserSettings type and
678
+ // update that as needed too.
679
+ //
680
+ // TODO(server-5.0): Remove FL 89+ comment.
664
681
export type InitialDataUserSettings = { |
665
- // TODO(server-5.0): New in FL 89, for requesting clients.
682
+ // TODO(server-5.0): New in FL 89, for requesting clients, so assumes 89 .
666
683
+ user_settings ?: UserSettings ,
667
684
| } ;
668
685
0 commit comments