fix build
This commit is contained in:
@@ -48,15 +48,21 @@ export const useNewMessage = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (draftDetail) {
|
if (draftDetail) {
|
||||||
const toEmailsList =
|
const toEmailsList =
|
||||||
draftDetail.to?.map((recipient) => recipient.address) || [];
|
draftDetail.to?.map(
|
||||||
|
(recipient: { address: string; name: string }) => recipient.address
|
||||||
|
) || [];
|
||||||
setToEmails(toEmailsList);
|
setToEmails(toEmailsList);
|
||||||
|
|
||||||
const ccEmailsList =
|
const ccEmailsList =
|
||||||
draftDetail.cc?.map((recipient) => recipient.address) || [];
|
draftDetail.cc?.map(
|
||||||
|
(recipient: { address: string; name: string }) => recipient.address
|
||||||
|
) || [];
|
||||||
setCcEmails(ccEmailsList);
|
setCcEmails(ccEmailsList);
|
||||||
|
|
||||||
const bccEmailsList =
|
const bccEmailsList =
|
||||||
draftDetail.bcc?.map((recipient) => recipient.address) || [];
|
draftDetail.bcc?.map(
|
||||||
|
(recipient: { address: string; name: string }) => recipient.address
|
||||||
|
) || [];
|
||||||
setBccEmails(bccEmailsList);
|
setBccEmails(bccEmailsList);
|
||||||
|
|
||||||
setSubject(draftDetail.subject || "");
|
setSubject(draftDetail.subject || "");
|
||||||
|
|||||||
@@ -258,6 +258,14 @@ export interface MessageDetail {
|
|||||||
address: string;
|
address: string;
|
||||||
name: string;
|
name: string;
|
||||||
}>;
|
}>;
|
||||||
|
cc?: Array<{
|
||||||
|
address: string;
|
||||||
|
name: string;
|
||||||
|
}>;
|
||||||
|
bcc?: Array<{
|
||||||
|
address: string;
|
||||||
|
name: string;
|
||||||
|
}>;
|
||||||
subject: string;
|
subject: string;
|
||||||
messageId: string;
|
messageId: string;
|
||||||
date: string;
|
date: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user