Skip to content

Commit 26764b1

Browse files
committed
Merge branch 'release/0.27.7/master'
2 parents 9e6a0da + d79b661 commit 26764b1

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Changes in 0.27.7 (2024-05-01)
2+
3+
No significant changes.
4+
5+
16
## Changes in 0.27.6 (2024-02-07)
27

38
No significant changes.

MatrixSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MatrixSDK"
4-
s.version = "0.27.6"
4+
s.version = "0.27.7"
55
s.summary = "The iOS SDK to build apps compatible with Matrix (https://www.matrix.org)"
66

77
s.description = <<-DESC

MatrixSDK/Crypto/MXCrypto.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ extern NSString *const MXDeviceListDidUpdateUsersDevicesNotification;
9595
*/
9696
@property (nullable, nonatomic, readonly) NSString *deviceEd25519Key;
9797

98+
99+
/**
100+
* The user device creation in local timestamp, milliseconds since epoch.
101+
*/
102+
@property (nonatomic, readonly) UInt64 deviceCreationTs;
103+
98104
/**
99105
The key backup manager.
100106
*/

MatrixSDK/Crypto/MXCrypto.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,12 @@ - (NSString *)olmVersion
14221422
#endif
14231423
}
14241424

1425+
- (uint64_t)deviceCreationTs
1426+
{
1427+
// Device creation timestamp is not support in legacy crypto
1428+
return 0;
1429+
}
1430+
14251431

14261432
#pragma mark - Gossipping
14271433

MatrixSDK/Crypto/MXCryptoV2.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class MXCryptoV2: NSObject, MXCrypto {
5656
return machine.deviceEd25519Key
5757
}
5858

59+
var deviceCreationTs: UInt64 {
60+
// own device always exists
61+
return machine.device(userId: machine.userId, deviceId: machine.deviceId)!.firstTimeSeenTs
62+
}
63+
5964
let backup: MXKeyBackup?
6065
let keyVerificationManager: MXKeyVerificationManager
6166
let crossSigning: MXCrossSigning

MatrixSDK/MatrixSDKVersion.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
#import <Foundation/Foundation.h>
1818

19-
NSString *const MatrixSDKVersion = @"0.27.6";
19+
NSString *const MatrixSDKVersion = @"0.27.7";

0 commit comments

Comments
 (0)