Skip to content

Commit

Permalink
fix: emails are not printed completely
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavaldodiya committed Jun 11, 2024
1 parent cacab7e commit c8fa328
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/store/actions/get-msg-for-print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import { soapFetch } from '@zextras/carbonio-shell-ui';
import { isNull, map, omitBy } from 'lodash';

import { normalizeMailMessageFromSoap } from '../../normalizations/normalize-message';
import type {
GetMsgForPrintParameter,
Expand All @@ -24,7 +25,6 @@ export const getMsgsForPrint = async ({
html: 1,
id,
needExp: 1,
max: 250000,
part,
read: 1
},
Expand All @@ -34,9 +34,8 @@ export const getMsgsForPrint = async ({
})),
_jsns: 'urn:zimbra'
})) as { GetMsgResponse: Array<GetMsgResponseType> };
const groupedMsgs = map(GetMsgResponse, (re) => {
return map(GetMsgResponse, (re) => {
const msg = re.m[0];
return normalizeMailMessageFromSoap(msg, true) as MailMessage;
});
return groupedMsgs;
};

0 comments on commit c8fa328

Please sign in to comment.