Always let the server set the create_at timestamp (#7323) (#7327)

(cherry picked from commit 34df44ab53)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2023-05-04 09:58:21 +03:00 committed by GitHub
parent 70fcb58d36
commit e0cc1acaa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ export async function createPost(serverUrl: string, post: Partial<Post>, 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 = {