Page MenuHomePhorge

Mark deleted devices as deleted
ClosedPublic

Authored by tusooa on Thu, Jul 23, 5:26 PM.

Details

Summary

Before, we did not have a way to track deleted devices. All of them linger in the device list tracker with no mark of deletion. This also caused megolm keys to be sent to these devices. This commit introduces a deleted marker; when a /keys/query is sent to obtain the full device list of a certain user, any device not in the response will be marked as deleted. ClientModel::devicesToSendKeys() will also exclude deleted devices so we no longer send session keys to them.

Type: fix
BUG: https://iron.lily-is.land/T140

Adapted from output of OpenCode (DeepSeek V4 Pro; GLM 5.2). tusooa reviewed the code and takes full responsibility.

Test Plan

To be tested together with a corresponding kazv diff ( https://iron.lily-is.land/D336 ).

Diff Detail

Repository
rL libkazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable