fix: clarify gog-based google chat setup
This commit is contained in:
1 parent
e4591ca120
commit
abe242a3bb
3 files changed
+13
-1
No files matched your search
@@ -167,6 +167,12 @@ export const googlechatPlugin: ChannelPlugin<ResolvedGoogleChatAccount> = {
|
||||
],
|
||||
}),
|
||||
isConfigured: (account) => account.credentialSource !== "none",
|
||||
unconfiguredReason: (account) => {
|
||||
if (account.config.oauthFromGog) {
|
||||
return "Google Chat OAuth from gog is enabled but no gog credentials were found. Ensure gog is installed, the gateway can access its keyring, or set oauthRefreshToken/oauthClientFile.";
|
||||
}
|
||||
return "Google Chat credentials are missing. Configure a service account or user OAuth.";
|
||||
},
|
||||
describeAccount: (account) => ({
|
||||
accountId: account.accountId,
|
||||
name: account.name,
|
||||
|
||||
@@ -648,7 +648,7 @@ async function processMessageWithPipeline(params: {
|
||||
let typingIndicator = account.config.typingIndicator ?? "message";
|
||||
if (typingIndicator === "reaction" && account.userCredentialSource === "none") {
|
||||
runtime.error?.(
|
||||
`[${account.accountId}] typingIndicator="reaction" requires user OAuth (not supported with service account). Falling back to "message" mode.`,
|
||||
`[${account.accountId}] typingIndicator="reaction" requires user OAuth. Configure OAuth (or oauthFromGog) to enable reactions; falling back to "message" mode.`,
|
||||
);
|
||||
typingIndicator = "message";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user