@@ -123,6 +123,7 @@ pub struct AccountSettings<M: Method + ReferencedTypes> {
123
123
pub preferred_reaction_emoji : M :: Value < Vec < String > > ,
124
124
pub default_chat_style : M :: Value < Option < ChatStyle < M > > > ,
125
125
pub custom_chat_colors : CustomColorMap < M > ,
126
+ pub optimize_on_device_storage : M :: Value < bool > ,
126
127
}
127
128
128
129
#[ derive( Copy , Clone , Debug , PartialEq , serde:: Serialize ) ]
@@ -361,6 +362,7 @@ impl<M: Method + ReferencedTypes, C: ReportUnusualTimestamp>
361
362
preferredReactionEmoji,
362
363
defaultChatStyle,
363
364
customChatColors,
365
+ optimizeOnDeviceStorage,
364
366
special_fields : _,
365
367
} = value;
366
368
@@ -403,6 +405,7 @@ impl<M: Method + ReferencedTypes, C: ReportUnusualTimestamp>
403
405
has_completed_username_onboarding : M :: value ( hasCompletedUsernameOnboarding) ,
404
406
preferred_reaction_emoji : M :: value ( preferredReactionEmoji) ,
405
407
universal_expire_timer : M :: value ( universal_expire_timer) ,
408
+ optimize_on_device_storage : M :: value ( optimizeOnDeviceStorage) ,
406
409
} )
407
410
}
408
411
}
@@ -460,6 +463,7 @@ mod test {
460
463
special_fields : Default :: default ( ) ,
461
464
} )
462
465
. into ( ) ,
466
+ optimizeOnDeviceStorage : true ,
463
467
..Default :: default ( )
464
468
}
465
469
}
@@ -536,6 +540,7 @@ mod test {
536
540
universal_expire_timer : None ,
537
541
preferred_reaction_emoji : vec ! [ ] ,
538
542
custom_chat_colors : CustomColorMap :: from_proto_test_data ( ) ,
543
+ optimize_on_device_storage : true ,
539
544
} ,
540
545
avatar_url_path : "" . to_string ( ) ,
541
546
backup_subscription : Some ( IapSubscriberData {
0 commit comments