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:
Raphaël Bosi 2024-08-28 16:26:08 +02:00 committed by GitHub
parent e2eaffcf53
commit e7bbc7ddfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}