Skip metadata initialization for verified-change
messages
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user