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…
Reference in New Issue