Skip metadata initialization for verified-change
messages
This commit is contained in:
parent
b0fefdbb98
commit
ae4c74dd5b
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue