mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(slack): request reactions:read in OAuth URL, drop im:history (#4856)
* fix(slack): request reactions:read in OAuth URL, drop im:history * chore(slack): update read-messages missing-scope message to drop im:history
This commit is contained in:
@@ -105,7 +105,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
|
||||
{
|
||||
success: false,
|
||||
error:
|
||||
'Missing required permissions. Please reconnect your Slack account with the necessary scopes (channels:history, groups:history, im:history).',
|
||||
'Missing required permissions. Reconnect your Slack account to grant channel history access (channels:history, groups:history). Reading direct message history is not supported with the Sim bot.',
|
||||
},
|
||||
{ status: 400 }
|
||||
)
|
||||
|
||||
@@ -703,7 +703,6 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
|
||||
'chat:write',
|
||||
'chat:write.public',
|
||||
'im:write',
|
||||
'im:history',
|
||||
'im:read',
|
||||
'users:read',
|
||||
// TODO: Add 'users:read.email' once Slack app review is approved
|
||||
@@ -712,6 +711,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
|
||||
'canvases:read',
|
||||
'canvases:write',
|
||||
'reactions:write',
|
||||
'reactions:read',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user