| @@ -558,6 +558,7 @@ impl SortOverrides { |
| 558 | pub struct TunableValues { |
558 | pub struct TunableValues { |
| 559 | pub log_level: Level, |
559 | pub log_level: Level, |
| 560 | pub message_shortcode_display: bool, |
560 | pub message_shortcode_display: bool, |
| |
561 | pub normal_after_send: bool, |
| 561 | pub reaction_display: bool, |
562 | pub reaction_display: bool, |
| 562 | pub reaction_shortcode_display: bool, |
563 | pub reaction_shortcode_display: bool, |
| 563 | pub read_receipt_send: bool, |
564 | pub read_receipt_send: bool, |
| @@ -584,6 +585,7 @@ pub struct TunableValues { |
| 584 | pub struct Tunables { |
585 | pub struct Tunables { |
| 585 | pub log_level: Option<LogLevel>, |
586 | pub log_level: Option<LogLevel>, |
| 586 | pub message_shortcode_display: Option<bool>, |
587 | pub message_shortcode_display: Option<bool>, |
| |
588 | pub normal_after_send: Option<bool>, |
| 587 | pub reaction_display: Option<bool>, |
589 | pub reaction_display: Option<bool>, |
| 588 | pub reaction_shortcode_display: Option<bool>, |
590 | pub reaction_shortcode_display: Option<bool>, |
| 589 | pub read_receipt_send: Option<bool>, |
591 | pub read_receipt_send: Option<bool>, |
| @@ -614,6 +616,7 @@ impl Tunables { |
| 614 | message_shortcode_display: self |
616 | message_shortcode_display: self |
| 615 | .message_shortcode_display |
617 | .message_shortcode_display |
| 616 | .or(other.message_shortcode_display), |
618 | .or(other.message_shortcode_display), |
| |
619 | normal_after_send: self.normal_after_send.or(other.normal_after_send), |
| 617 | reaction_display: self.reaction_display.or(other.reaction_display), |
620 | reaction_display: self.reaction_display.or(other.reaction_display), |
| 618 | reaction_shortcode_display: self |
621 | reaction_shortcode_display: self |
| 619 | .reaction_shortcode_display |
622 | .reaction_shortcode_display |
| @@ -645,6 +648,7 @@ impl Tunables { |
| 645 | TunableValues { |
648 | TunableValues { |
| 646 | log_level: self.log_level.map(Level::from).unwrap_or(Level::INFO), |
649 | log_level: self.log_level.map(Level::from).unwrap_or(Level::INFO), |
| 647 | message_shortcode_display: self.message_shortcode_display.unwrap_or(false), |
650 | message_shortcode_display: self.message_shortcode_display.unwrap_or(false), |
| |
651 | normal_after_send: self.normal_after_send.unwrap_or(false), |
| 648 | reaction_display: self.reaction_display.unwrap_or(true), |
652 | reaction_display: self.reaction_display.unwrap_or(true), |
| 649 | reaction_shortcode_display: self.reaction_shortcode_display.unwrap_or(false), |
653 | reaction_shortcode_display: self.reaction_shortcode_display.unwrap_or(false), |
| 650 | read_receipt_send: self.read_receipt_send.unwrap_or(true), |
654 | read_receipt_send: self.read_receipt_send.unwrap_or(true), |