async fn select_expired_messages(
context: &Context,
now: i64,
) -> Result<Vec<(MsgId, ChatId, Viewtype, u32)>>
Expand description
Selects messages which are expired according to
delete_device_after
setting or ephemeral_timestamp
column.
For each message a row ID, chat id, viewtype and location ID is returned.
Unknown viewtypes are returned as Viewtype::Unknown
and not as errors bubbled up, easily resulting in infinite loop or leaving messages undeleted.
(Happens when viewtypes are removed or added on another device which was backup/add-second-device source)