Fixed an issue where joinedAt wasn't getting set for legacy groups

pull/1005/head
Morgan Pretty 8 months ago
parent 64b6eec706
commit 5da842a109

@ -7673,7 +7673,7 @@
CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES; CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 473; CURRENT_PROJECT_VERSION = 474;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES; ENABLE_TESTABILITY = YES;
@ -7751,7 +7751,7 @@
CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES; CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_IDENTITY = "iPhone Distribution";
CURRENT_PROJECT_VERSION = 473; CURRENT_PROJECT_VERSION = 474;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;

@ -625,6 +625,7 @@ public extension LibSession {
_ db: Database, _ db: Database,
groupPublicKey: String, groupPublicKey: String,
name: String, name: String,
joinedAt: TimeInterval,
latestKeyPairPublicKey: Data, latestKeyPairPublicKey: Data,
latestKeyPairSecretKey: Data, latestKeyPairSecretKey: Data,
latestKeyPairReceivedTimestamp: TimeInterval, latestKeyPairReceivedTimestamp: TimeInterval,
@ -680,7 +681,8 @@ public extension LibSession {
role: .admin, role: .admin,
isHidden: false isHidden: false
) )
} },
joinedAt: Int64(joinedAt)
) )
], ],
in: conf in: conf

@ -225,6 +225,7 @@ extension MessageReceiver {
db, db,
groupPublicKey: groupPublicKey, groupPublicKey: groupPublicKey,
name: name, name: name,
joinedAt: (TimeInterval(formationTimestampMs) / 1000),
latestKeyPairPublicKey: Data(encryptionKeyPair.publicKey), latestKeyPairPublicKey: Data(encryptionKeyPair.publicKey),
latestKeyPairSecretKey: Data(encryptionKeyPair.secretKey), latestKeyPairSecretKey: Data(encryptionKeyPair.secretKey),
latestKeyPairReceivedTimestamp: receivedTimestamp, latestKeyPairReceivedTimestamp: receivedTimestamp,

@ -76,6 +76,7 @@ extension MessageSender {
db, db,
groupPublicKey: groupPublicKey, groupPublicKey: groupPublicKey,
name: name, name: name,
joinedAt: formationTimestamp,
latestKeyPairPublicKey: Data(encryptionKeyPair.publicKey), latestKeyPairPublicKey: Data(encryptionKeyPair.publicKey),
latestKeyPairSecretKey: Data(encryptionKeyPair.secretKey), latestKeyPairSecretKey: Data(encryptionKeyPair.secretKey),
latestKeyPairReceivedTimestamp: latestKeyPairReceivedTimestamp, latestKeyPairReceivedTimestamp: latestKeyPairReceivedTimestamp,

Loading…
Cancel
Save