Skip to content
Snippets Groups Projects
Commit e88929e1 authored by Timo Kösters's avatar Timo Kösters
Browse files

Merge branch 'nyaaori/fix-otk-reporting' into 'next'

Always send device_one_time_keys_count, fixing #178

Closes #169 and #178

See merge request famedly/conduit!213
parents dc8bc4a8 d996d1b0
No related branches found
No related tags found
No related merge requests found
......@@ -755,13 +755,7 @@ async fn sync_helper(
changed: device_list_updates.into_iter().collect(),
left: device_list_left.into_iter().collect(),
},
device_one_time_keys_count: if db.users.last_one_time_keys_update(&sender_user)? > since
|| since == 0
{
db.users.count_one_time_keys(&sender_user, &sender_device)?
} else {
BTreeMap::new()
},
device_one_time_keys_count: db.users.count_one_time_keys(&sender_user, &sender_device)?,
to_device: sync_events::ToDevice {
events: db
.users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment