feat: add setting for character limit of truncated deleted messages (#6491)

This commit is contained in:
Jacob Alexander Thompson
2025-09-28 03:04:08 -07:00
committed by GitHub
parent a7de887ee0
commit 1d06086bb9
5 changed files with 31 additions and 5 deletions
+16
View File
@@ -556,6 +556,22 @@ void GeneralPage::initLayout(GeneralPageView &layout)
[](auto args) {
return fuzzyToInt(args.value, 0);
});
layout.addDropdown<int>(
"Limit length of deleted messages",
{"No limit", "50 characters", "100 characters", "200 characters",
"300 characters", "400 characters"},
s.deletedMessageLengthLimit,
[](auto val) {
return val ? QString::number(val) + " characters"
: QString("No limit");
},
[](const auto &args) {
return fuzzyToInt(args.value, 0);
},
true,
{"Limits the amount of characters displayed in deleted messages "
"when announced via system message."});
layout.addSeparator();
SettingWidget::checkbox("Draw a line below the most recent message before "