mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
Fix participant listeners (#6767)
Fixes a bug where all the messagesParticipants and the calendarEventParticipants were linked to a contact after its restoration.
This commit is contained in:
parent
e2eaffcf53
commit
e7bbc7ddfc
@ -32,7 +32,7 @@ export class CalendarEventParticipantPersonListener {
|
||||
>,
|
||||
) {
|
||||
for (const eventPayload of payload.events) {
|
||||
if (eventPayload.properties.after.email === null) {
|
||||
if (!eventPayload.properties.after.email) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ export class CalendarEventParticipantWorkspaceMemberListener {
|
||||
>,
|
||||
) {
|
||||
for (const eventPayload of payload.events) {
|
||||
if (eventPayload.properties.after.userEmail === null) {
|
||||
if (!eventPayload.properties.after.userEmail) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ export class MessageParticipantPersonListener {
|
||||
>,
|
||||
) {
|
||||
for (const eventPayload of payload.events) {
|
||||
if (eventPayload.properties.after.email === null) {
|
||||
if (!eventPayload.properties.after.email) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ export class MessageParticipantWorkspaceMemberListener {
|
||||
}
|
||||
|
||||
for (const eventPayload of payload.events) {
|
||||
if (eventPayload.properties.after.userEmail === null) {
|
||||
if (!eventPayload.properties.after.userEmail) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user