Skip metadata initialization for `verified-change` messages

pull/1/head
Daniel Gasienica 7 years ago
parent b0fefdbb98
commit ae4c74dd5b

@ -9,6 +9,10 @@ import { Message } from '../Message';
export const initializeAttachmentMetadata = async (
message: Message
): Promise<Message> => {
if (message.type === 'verified-change') {
return message;
}
const numAttachments = message.attachments.length;
const [numVisualMediaAttachments, numFileAttachments] = partition(
message.attachments,

Loading…
Cancel
Save