fix signature upload

This commit is contained in:
Sorunome 2020-06-06 15:43:18 +02:00
parent 45232be3a0
commit 51584ad748
No known key found for this signature in database
GPG key ID: B19471D07FC9BE9C

View file

@ -125,6 +125,7 @@ abstract class SignableKey extends MatrixSignableKey {
MatrixSignableKey cloneForSigning() {
final newKey =
MatrixSignableKey.fromJson(Map<String, dynamic>.from(toJson()));
newKey.identifier = identifier;
newKey.signatures ??= <String, Map<String, String>>{};
newKey.signatures.clear();
return newKey;