diff --git a/lib/encryption/utils/ssss_cache.dart b/lib/encryption/utils/ssss_cache.dart index 7c9eb321..df22d870 100644 --- a/lib/encryption/utils/ssss_cache.dart +++ b/lib/encryption/utils/ssss_cache.dart @@ -17,17 +17,14 @@ */ class SSSSCache { - final int? clientId; final String? type; final String? keyId; final String? ciphertext; final String? content; - const SSSSCache( - {this.clientId, this.type, this.keyId, this.ciphertext, this.content}); + const SSSSCache({this.type, this.keyId, this.ciphertext, this.content}); factory SSSSCache.fromJson(Map json) => SSSSCache( - clientId: json['client_id'], type: json['type'], keyId: json['key_id'], ciphertext: json['ciphertext'], @@ -35,7 +32,6 @@ class SSSSCache { ); Map toJson() => { - 'client_id': clientId, 'type': type, 'key_id': keyId, 'ciphertext': ciphertext, diff --git a/lib/encryption/utils/stored_inbound_group_session.dart b/lib/encryption/utils/stored_inbound_group_session.dart index e9ac0a8e..534f4564 100644 --- a/lib/encryption/utils/stored_inbound_group_session.dart +++ b/lib/encryption/utils/stored_inbound_group_session.dart @@ -18,7 +18,6 @@ */ class StoredInboundGroupSession { - final int clientId; final String roomId; final String sessionId; final String pickle; @@ -30,7 +29,6 @@ class StoredInboundGroupSession { final String senderClaimedKeys; StoredInboundGroupSession({ - this.clientId, this.roomId, this.sessionId, this.pickle, @@ -44,7 +42,6 @@ class StoredInboundGroupSession { factory StoredInboundGroupSession.fromJson(Map json) => StoredInboundGroupSession( - clientId: json['client_id'], roomId: json['room_id'], sessionId: json['session_id'], pickle: json['pickle'], @@ -57,7 +54,6 @@ class StoredInboundGroupSession { ); Map toJson() => { - 'client_id': clientId, 'room_id': roomId, 'session_id': sessionId, 'pickle': pickle,