mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
fix(mail-ingest): AI reading can be switched back on, and its hint names the addon
ai_available folded the person's own switch in, so switching AI reading off greyed the switch out and it never came back. It now says only whether AI reading works on the instance (the AI Parsing addon and a connection). When it does not, the settings card says it needs the AI Parsing addon, by its localized name, in all 28 locales; the wiki says the same.
This commit is contained in:
@@ -71,7 +71,9 @@ export class MailIngestInboxService {
|
||||
available: true,
|
||||
address: await this.addresses.ownAddress(userId),
|
||||
prefs,
|
||||
ai_available: prefs.ai_enabled && (await this.reader.isAvailable(userId)),
|
||||
// Whether AI reading can work here at all (the AI Parsing addon and a connection), not the person's own
|
||||
// switch: with it folded in, switching AI off greyed the switch out and it could never come back on.
|
||||
ai_available: await this.reader.isAvailable(userId),
|
||||
pending: await this.candidates.countPending(userId),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user