twenty/packages
Weiko 2efc794b43
[messaging] Add message deletion during partial sync (#4972)
## Context

- Rename remaining V2 services.
- Delete messages in DB when gmail history tells us they've been
deleted. I removed the logic where we store those in a cache since it's
a bit overkill because we don't need to query gmail and can use those
ids directly. The strategy is to delete the message channel message
association of the current channel, not the message or the thread since
they can still be linked to other channels. However, we will need to
call the threadCleaner service on the workspace to remove orphan
threads/non-associated messages.

Note: deletion for full-sync is a bit tricky because we need the full
list of message ids to compare with the DB and make sure we don't
over-delete. Currently, to keep memory, we don't have a variable that
holds all ids as we flush it after each page. Easier solution would be
to wipe everything before each full sync but it's probably not great for
the user experience if they are currently manipulating messages since
full-sync can happen without a user intervention (if a partial sync
fails due to historyId being invalidated by google for some reason)
2024-04-16 17:18:06 +02:00
..
twenty-chrome-extension New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00
twenty-docker refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00
twenty-docs Fix ParticipantChip and stories imports (#4974) 2024-04-15 18:09:05 +02:00
twenty-emails Release 0.4.0 (#4856) 2024-04-05 18:35:48 +02:00
twenty-front Date picker for Date and DateTime field input (#4981) 2024-04-16 16:58:08 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server [messaging] Add message deletion during partial sync (#4972) 2024-04-16 17:18:06 +02:00
twenty-ui Add connection failed status (#4939) 2024-04-15 14:09:01 +02:00
twenty-utils Improve website github sync (#4259) 2024-03-01 15:15:55 +01:00
twenty-website Removed Remote Objects from 0.10 changelog (#4983) 2024-04-16 09:45:18 +02:00
twenty-zapier New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00