forked from Ivasoft/mattermost-mobile
Removed unused handlePostMetadata
This commit is contained in:
@@ -87,7 +87,6 @@ const PostHandler = (superclass: any) => class extends superclass {
|
||||
|
||||
const emojis: CustomEmoji[] = [];
|
||||
const files: FileInfo[] = [];
|
||||
const metadatas: Metadata[] = [];
|
||||
const postsReactions: ReactionsPerPost[] = [];
|
||||
const pendingPostsToDelete: Post[] = [];
|
||||
const postsInThread: Record<string, Post[]> = {};
|
||||
@@ -193,12 +192,6 @@ const PostHandler = (superclass: any) => class extends superclass {
|
||||
batch.push(...postFiles);
|
||||
}
|
||||
|
||||
if (metadatas.length) {
|
||||
// calls handler for postMetadata ( embeds and images )
|
||||
const postMetadata = await this.handlePostMetadata({metadatas, prepareRecordsOnly: true});
|
||||
batch.push(...postMetadata);
|
||||
}
|
||||
|
||||
if (emojis.length) {
|
||||
const postEmojis = await this.handleCustomEmojis({emojis, prepareRecordsOnly: true});
|
||||
batch.push(...postEmojis);
|
||||
|
||||
Reference in New Issue
Block a user