/* @flow */
import type { ApiResponse, Auth } from '../../types';
import { apiPatch } from '../apiFetch';
import { removeEmptyValues } from '../../utils/misc';

export default async (auth: Auth, content: Object, id: number): Promise<ApiResponse> =>
  apiPatch(auth, `messages/${id}`, res => res, removeEmptyValues(content));

@@ -102,62 +102,8 @@
 ch';
-%0Aimport %7B removeEmptyValues %7D from '../../utils/misc';
 %0A%0Aex
@@ -239,33 +239,15 @@
 es, 
-removeEmptyValues(
 content)
 );%0A
@@ -243,11 +243,10 @@
 content)
-)
 ;%0A

Remove unneeded `removeEmptyValues` from `updateMessage`