Skip to content

Commit

Permalink
Fix participant listeners (#6767)
Browse files Browse the repository at this point in the history
Fixes a bug where all the messagesParticipants and the
calendarEventParticipants were linked to a contact after its
restoration.
  • Loading branch information
bosiraphael authored Aug 28, 2024
1 parent e2eaffc commit e7bbc7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e7bbc7d

Please sign in to comment.