Do not remove notifications on unsubscribe (#5466)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-04-25 16:09:11 +04:00 committed by GitHub
parent 33eef25863
commit eb2daac725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -257,7 +257,6 @@ async function updateMeInCollaborators (
export async function unsubscribe (object: DocNotifyContext): Promise<void> { export async function unsubscribe (object: DocNotifyContext): Promise<void> {
const client = getClient() const client = getClient()
await updateMeInCollaborators(client, object.attachedToClass, object.attachedTo, OpWithMe.Remove) await updateMeInCollaborators(client, object.attachedToClass, object.attachedTo, OpWithMe.Remove)
await client.remove(object)
} }
/** /**