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:
@ -32,7 +32,7 @@ export class CalendarEventParticipantPersonListener {
|
|||||||
>,
|
>,
|
||||||
) {
|
) {
|
||||||
for (const eventPayload of payload.events) {
|
for (const eventPayload of payload.events) {
|
||||||
if (eventPayload.properties.after.email === null) {
|
if (!eventPayload.properties.after.email) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export class CalendarEventParticipantWorkspaceMemberListener {
|
|||||||
>,
|
>,
|
||||||
) {
|
) {
|
||||||
for (const eventPayload of payload.events) {
|
for (const eventPayload of payload.events) {
|
||||||
if (eventPayload.properties.after.userEmail === null) {
|
if (!eventPayload.properties.after.userEmail) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export class MessageParticipantPersonListener {
|
|||||||
>,
|
>,
|
||||||
) {
|
) {
|
||||||
for (const eventPayload of payload.events) {
|
for (const eventPayload of payload.events) {
|
||||||
if (eventPayload.properties.after.email === null) {
|
if (!eventPayload.properties.after.email) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export class MessageParticipantWorkspaceMemberListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const eventPayload of payload.events) {
|
for (const eventPayload of payload.events) {
|
||||||
if (eventPayload.properties.after.userEmail === null) {
|
if (!eventPayload.properties.after.userEmail) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user