| @@ -561,6 +561,7 @@ pub struct TunableValues { |
| 561 | pub read_receipt_display: bool, |
561 | pub read_receipt_display: bool, |
| 562 | pub request_timeout: u64, |
562 | pub request_timeout: u64, |
| 563 | pub sort: SortValues, |
563 | pub sort: SortValues, |
| |
564 | pub state_event_display: bool, |
| 564 | pub typing_notice_send: bool, |
565 | pub typing_notice_send: bool, |
| 565 | pub typing_notice_display: bool, |
566 | pub typing_notice_display: bool, |
| 566 | pub users: UserOverrides, |
567 | pub users: UserOverrides, |
| @@ -586,6 +587,7 @@ pub struct Tunables { |
| 586 | pub request_timeout: Option<u64>, |
587 | pub request_timeout: Option<u64>, |
| 587 | #[serde(default)] |
588 | #[serde(default)] |
| 588 | pub sort: SortOverrides, |
589 | pub sort: SortOverrides, |
| |
590 | pub state_event_display: Option<bool>, |
| 589 | pub typing_notice_send: Option<bool>, |
591 | pub typing_notice_send: Option<bool>, |
| 590 | pub typing_notice_display: Option<bool>, |
592 | pub typing_notice_display: Option<bool>, |
| 591 | pub users: Option<UserOverrides>, |
593 | pub users: Option<UserOverrides>, |
| @@ -615,6 +617,7 @@ impl Tunables { |
| 615 | read_receipt_display: self.read_receipt_display.or(other.read_receipt_display), |
617 | read_receipt_display: self.read_receipt_display.or(other.read_receipt_display), |
| 616 | request_timeout: self.request_timeout.or(other.request_timeout), |
618 | request_timeout: self.request_timeout.or(other.request_timeout), |
| 617 | sort: merge_sorts(self.sort, other.sort), |
619 | sort: merge_sorts(self.sort, other.sort), |
| |
620 | state_event_display: self.state_event_display.or(other.state_event_display), |
| 618 | typing_notice_send: self.typing_notice_send.or(other.typing_notice_send), |
621 | typing_notice_send: self.typing_notice_send.or(other.typing_notice_send), |
| 619 | typing_notice_display: self.typing_notice_display.or(other.typing_notice_display), |
622 | typing_notice_display: self.typing_notice_display.or(other.typing_notice_display), |
| 620 | users: merge_maps(self.users, other.users), |
623 | users: merge_maps(self.users, other.users), |
| @@ -642,6 +645,7 @@ impl Tunables { |
| 642 | read_receipt_display: self.read_receipt_display.unwrap_or(true), |
645 | read_receipt_display: self.read_receipt_display.unwrap_or(true), |
| 643 | request_timeout: self.request_timeout.unwrap_or(DEFAULT_REQ_TIMEOUT), |
646 | request_timeout: self.request_timeout.unwrap_or(DEFAULT_REQ_TIMEOUT), |
| 644 | sort: self.sort.values(), |
647 | sort: self.sort.values(), |
| |
648 | state_event_display: self.state_event_display.unwrap_or(true), |
| 645 | typing_notice_send: self.typing_notice_send.unwrap_or(true), |
649 | typing_notice_send: self.typing_notice_send.unwrap_or(true), |
| 646 | typing_notice_display: self.typing_notice_display.unwrap_or(true), |
650 | typing_notice_display: self.typing_notice_display.unwrap_or(true), |
| 647 | users: self.users.unwrap_or_default(), |
651 | users: self.users.unwrap_or_default(), |