add 'nothreads' option, fixes #4

This commit is contained in:
Aine
2022-08-26 16:00:37 +03:00
parent 41a52c1eca
commit 42c9e15619
4 changed files with 14 additions and 1 deletions

View File

@@ -71,6 +71,13 @@ var (
optionNoHTML,
),
},
{
key: optionNoThreads,
description: fmt.Sprintf(
"Get or set `%s` of the room (`true` - ignore email threads; `false` - convert email threads into matrix threads)",
optionNoThreads,
),
},
}
// sanitizers is map of option name => sanitizer function
@@ -79,6 +86,7 @@ var (
optionNoSender: utils.SanitizeBoolString,
optionNoSubject: utils.SanitizeBoolString,
optionNoHTML: utils.SanitizeBoolString,
optionNoThreads: utils.SanitizeBoolString,
}
)