mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix verification loss; workaround Nheko-Reborn/nheko#1908 (closes #146)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -91,8 +91,11 @@ pub(crate) async fn upload_keys_route(
|
|||||||
.users
|
.users
|
||||||
.get_device_keys(sender_user, sender_device)
|
.get_device_keys(sender_user, sender_device)
|
||||||
.await
|
.await
|
||||||
|
.and_then(|keys| keys.deserialize().map_err(Into::into))
|
||||||
{
|
{
|
||||||
if existing_keys.json().get() == device_keys.json().get() {
|
// NOTE: also serves as a workaround for a nheko bug which omits cross-signing
|
||||||
|
// NOTE: signatures when re-uploading the same DeviceKeys.
|
||||||
|
if existing_keys.keys == deser_device_keys.keys {
|
||||||
debug!(
|
debug!(
|
||||||
%sender_user,
|
%sender_user,
|
||||||
%sender_device,
|
%sender_device,
|
||||||
|
|||||||
Reference in New Issue
Block a user