refactor: remove clientid from encryption code
This commit is contained in:
parent
1c838e3be8
commit
e5682fcb91
|
|
@ -17,17 +17,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SSSSCache {
|
class SSSSCache {
|
||||||
final int? clientId;
|
|
||||||
final String? type;
|
final String? type;
|
||||||
final String? keyId;
|
final String? keyId;
|
||||||
final String? ciphertext;
|
final String? ciphertext;
|
||||||
final String? content;
|
final String? content;
|
||||||
|
|
||||||
const SSSSCache(
|
const SSSSCache({this.type, this.keyId, this.ciphertext, this.content});
|
||||||
{this.clientId, this.type, this.keyId, this.ciphertext, this.content});
|
|
||||||
|
|
||||||
factory SSSSCache.fromJson(Map<String, dynamic> json) => SSSSCache(
|
factory SSSSCache.fromJson(Map<String, dynamic> json) => SSSSCache(
|
||||||
clientId: json['client_id'],
|
|
||||||
type: json['type'],
|
type: json['type'],
|
||||||
keyId: json['key_id'],
|
keyId: json['key_id'],
|
||||||
ciphertext: json['ciphertext'],
|
ciphertext: json['ciphertext'],
|
||||||
|
|
@ -35,7 +32,6 @@ class SSSSCache {
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
Map<String, dynamic> toJson() => {
|
||||||
'client_id': clientId,
|
|
||||||
'type': type,
|
'type': type,
|
||||||
'key_id': keyId,
|
'key_id': keyId,
|
||||||
'ciphertext': ciphertext,
|
'ciphertext': ciphertext,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class StoredInboundGroupSession {
|
class StoredInboundGroupSession {
|
||||||
final int clientId;
|
|
||||||
final String roomId;
|
final String roomId;
|
||||||
final String sessionId;
|
final String sessionId;
|
||||||
final String pickle;
|
final String pickle;
|
||||||
|
|
@ -30,7 +29,6 @@ class StoredInboundGroupSession {
|
||||||
final String senderClaimedKeys;
|
final String senderClaimedKeys;
|
||||||
|
|
||||||
StoredInboundGroupSession({
|
StoredInboundGroupSession({
|
||||||
this.clientId,
|
|
||||||
this.roomId,
|
this.roomId,
|
||||||
this.sessionId,
|
this.sessionId,
|
||||||
this.pickle,
|
this.pickle,
|
||||||
|
|
@ -44,7 +42,6 @@ class StoredInboundGroupSession {
|
||||||
|
|
||||||
factory StoredInboundGroupSession.fromJson(Map<String, dynamic> json) =>
|
factory StoredInboundGroupSession.fromJson(Map<String, dynamic> json) =>
|
||||||
StoredInboundGroupSession(
|
StoredInboundGroupSession(
|
||||||
clientId: json['client_id'],
|
|
||||||
roomId: json['room_id'],
|
roomId: json['room_id'],
|
||||||
sessionId: json['session_id'],
|
sessionId: json['session_id'],
|
||||||
pickle: json['pickle'],
|
pickle: json['pickle'],
|
||||||
|
|
@ -57,7 +54,6 @@ class StoredInboundGroupSession {
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
Map<String, dynamic> toJson() => {
|
||||||
'client_id': clientId,
|
|
||||||
'room_id': roomId,
|
'room_id': roomId,
|
||||||
'session_id': sessionId,
|
'session_id': sessionId,
|
||||||
'pickle': pickle,
|
'pickle': pickle,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue