You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** if lastSeenDate is > 30 days, but not if ALL keys are expired and this is the one last seen*/
48
48
- (BOOL) isExpired {
49
+
if ([self_isExpired]) {
50
+
if (self.lastSeenDate && [OMEMODevice isLastSeenExpiredDevice:self]) {
51
+
returnNO;
52
+
}
53
+
returnYES;
54
+
}
55
+
returnNO;
56
+
}
57
+
58
+
/** if lastSeenDate is > 30 days */
59
+
- (BOOL) _isExpired {
49
60
if (!self.lastSeenDate) {
50
61
returnYES;
51
62
}
@@ -57,6 +68,35 @@ - (BOOL) isExpired {
57
68
returnNO;
58
69
}
59
70
71
+
/** If ALL devices are considered expired, return TRUE if device is the one that was last seen of them all. Kind of hackish, but would have required major refactoring. */
/** If enabled, will allow OMEMO functionality within the app. Defaults to YES if setting key is not present. */
99
99
@property (class, readonly) BOOL allowOMEMO;
100
100
101
-
/** If enabled, will enter groups in plaintext mode. Defaults to NO if setting key is not present, which will result in setting transport security to "best". */
0 commit comments