diff --git a/src/pages/events/e/:eventId/EventLists/Search/MessageEntriesModal.tsx b/src/pages/events/e/:eventId/EventLists/Search/MessageEntriesModal.tsx index 3353bf5..a9e3fed 100644 --- a/src/pages/events/e/:eventId/EventLists/Search/MessageEntriesModal.tsx +++ b/src/pages/events/e/:eventId/EventLists/Search/MessageEntriesModal.tsx @@ -17,7 +17,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: { event: EventModel, query: UseInfiniteQueryResult, unknown>, Error> }) { - const {pb} = usePB() + const {pb, user} = usePB() const totalPages = query.data?.pages?.[0].totalPages || 0 const currentPage = query.data?.pages?.length || 0 @@ -46,6 +46,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: { content: formValues.values.content, recipients: entries.map(e => e.user), isAnnouncement: true, + sender: user?.id, meta: { event: event.id }