add toggle for autmatically translated messages for notification and chat or manual translation on message action. Due to heavy battery usage.
This commit is contained in:
1 parent
bc5f299350
commit
9ada4ea601
44 files changed
+424
-24
No files matched your search
@@ -235,6 +235,12 @@ class AppSettingsService extends ChangeNotifier {
|
||||
await updateSettings(_settings.copyWith(translationEnabled: value));
|
||||
}
|
||||
|
||||
Future<void> setAutoTranslateIncomingMessages(bool value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(autoTranslateIncomingMessages: value),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setTranslationTargetLanguageCode(String? value) async {
|
||||
await updateSettings(
|
||||
_settings.copyWith(translationTargetLanguageCode: value),
|
||||
|
||||
Reference in new issue
Block a user