mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 16:34:45 +00:00
FIX: Add check for PMs before showing AI helper context menu (#153)
This commit is contained in:
parent
4a00b7eb0e
commit
1289ae1c57
@ -23,6 +23,12 @@ export default class AiHelperContextMenu extends Component {
|
||||
allowedGroups.includes(g.id)
|
||||
);
|
||||
|
||||
const canShowInPM = helper.siteSettings.ai_helper_allowed_in_pm;
|
||||
|
||||
if (outletArgs.composer.privateMessage) {
|
||||
return helperEnabled && canUseAssistant && canShowInPM;
|
||||
}
|
||||
|
||||
return helperEnabled && canUseAssistant;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user