fix(admin): Own pushkeys before deleting all of a user's pushers

This commit is contained in:
Erwan Leboucher authored and Ellis Git committed 2026-08-27 15:36:43 +00:00
1 parent 5cf0a5b376
commit 4dc7e06c90
6 files changed
+7 -8

No files matched your search

+2 -1
View File
@@ -182,13 +182,14 @@ impl Service {
pub fn get_pushkeys<'a>(
&'a self,
sender: &'a UserId,
) -> impl Stream<Item = &'a str> + Send + 'a {
) -> impl Stream<Item = String> + Send + 'a {
let prefix = (sender, Interfix);
self.db
.senderkey_pusher
.keys_prefix(&prefix)
.ignore_err()
.map(|(_, pushkey): (Ignore, &str)| pushkey)
.map(ToOwned::to_owned)
}
#[tracing::instrument(skip(self, dest, request))]
+1 -1
View File
@@ -540,7 +540,7 @@ impl super::Service {
.ready_for_each(|push_key| {
self.services
.sending
.send_pdu_push(pdu_id, user, push_key.to_owned())
.send_pdu_push(pdu_id, user, push_key)
.expect("TODO: replace with future");
})
.await;