refactor: remove clientid from encryption code
This commit is contained in:
parent
1c838e3be8
commit
e5682fcb91
|
|
@ -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<String, dynamic> json) => SSSSCache(
|
||||
clientId: json['client_id'],
|
||||
type: json['type'],
|
||||
keyId: json['key_id'],
|
||||
ciphertext: json['ciphertext'],
|
||||
|
|
@ -35,7 +32,6 @@ class SSSSCache {
|
|||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'client_id': clientId,
|
||||
'type': type,
|
||||
'key_id': keyId,
|
||||
'ciphertext': ciphertext,
|
||||
|
|
|
|||
|
|
@ -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<String, dynamic> json) =>
|
||||
StoredInboundGroupSession(
|
||||
clientId: json['client_id'],
|
||||
roomId: json['room_id'],
|
||||
sessionId: json['session_id'],
|
||||
pickle: json['pickle'],
|
||||
|
|
@ -57,7 +54,6 @@ class StoredInboundGroupSession {
|
|||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'client_id': clientId,
|
||||
'room_id': roomId,
|
||||
'session_id': sessionId,
|
||||
'pickle': pickle,
|
||||
|
|
|
|||
Loading…
Reference in New Issue