From e0cc1acaa6d12ebcf0b0f52f7133d09268959638 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Thu, 4 May 2023 09:58:21 +0300 Subject: [PATCH] Always let the server set the create_at timestamp (#7323) (#7327) (cherry picked from commit 34df44ab53a8b6296e8317bd152005c3b71b12d9) Co-authored-by: Elias Nahum --- app/actions/remote/post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actions/remote/post.ts b/app/actions/remote/post.ts index 6e9e1ff96..f17fef02b 100644 --- a/app/actions/remote/post.ts +++ b/app/actions/remote/post.ts @@ -133,7 +133,7 @@ export async function createPost(serverUrl: string, post: Partial, files: let created; try { - created = await client.createPost(newPost); + created = await client.createPost({...newPost, create_at: 0}); } catch (error) { logDebug('Error sending a post', error); const errorPost = {