blob: a12797510373df551e256838c78dcb2f28fdfa9d [file] [log] [blame]
const createMessageRemoveParentRef = {
urlRegex: /api\/CreateMessage/i,
featureGated: true,
features: ['flattenthreads', 'flattenthreads_switch_enabled'],
isEnabled(options) {
return options['flattenthreads'] &&
options['flattenthreads_switch_enabled'];
},
async interceptor(_request, response) {
// Remove parent_message_id value (field 37)
delete response[37];
return response;
}
};
export default createMessageRemoveParentRef;