-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
delete messages from device_inbox table when deleting device #10098
Conversation
#9346 is also related |
@@ -1130,6 +1130,12 @@ async def delete_device(self, user_id: str, device_id: str) -> None: | |||
desc="delete_device", | |||
) | |||
|
|||
await self.db_pool.simple_delete_one( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await self.db_pool.simple_delete_one( | |
await self.db_pool.simple_delete_many( |
Since the table may have many rows (or no rows)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it
Hey @JohannesKleine, are you able to implement the remaining work on this feature? |
Fixes #3599 |
Just removed the background update related things. |
I had continued to work on it and also added unit tests. #10969 |
Saw it (still working on understand your things), left you some input, but this here was unfinished business. If this small change gets merged and my other pull request it could help to keep the db clean until the background job is finished. |
The queries are in one transaction: #10969 (comment) |
Oh, does #10969 make this PR redundant? |
Yes. IMO this is done already. |
Then I'll close it. Thanks both! |
Fixes #3599
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.