Remove epochs from Call Link test cases

This commit is contained in:
Sasha Weiss 2026-02-13 18:12:11 -08:00 committed by GitHub
parent b522c03965
commit f8bb14fe4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 3 additions and 12 deletions

View File

@ -28,8 +28,7 @@ object RecipientCallLinkTestCase : TestCase("recipient_call_link") {
adminKey = someNullableBytes(32)?.toByteString(),
name = someString(),
restrictions = someEnum(CallLink.Restrictions::class.java),
expirationMs = some(Generators.expirationTimersMs().map { Instant.ofEpochMilli(it).truncatedTo(ChronoUnit.DAYS).toEpochMilli() }),
epoch = someNullableBytes(4)?.toByteString()
expirationMs = some(Generators.expirationTimersMs().map { Instant.ofEpochMilli(it).truncatedTo(ChronoUnit.DAYS).toEpochMilli() })
)
)
)

View File

@ -407,7 +407,7 @@ message CallLink {
string name = 3;
Restrictions restrictions = 4;
uint64 expirationMs = 5;
optional bytes epoch = 6; // May be absent/empty for older links
reserved /*epoch*/ 6;
}
message AdHocCall {
@ -1432,4 +1432,4 @@ message ChatFolder {
repeated uint64 includedRecipientIds = 7; // generated recipient id of groups, contacts, and/or note to self
repeated uint64 excludedRecipientIds = 8; // generated recipient id of groups, contacts, and/or note to self
bytes id = 9; // should be 16 bytes
}
}

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
expirationMs = 1197072000000
name = "QSvJcbzG"
restrictions = Restrictions.NONE

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
name = ""
restrictions = Restrictions.UNKNOWN
rootKey = <2cc2b48c50aefe53b3974ed91e6b4ea9>

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
expirationMs = 1587945600000
name = "SDTsXBkoG"
restrictions = Restrictions.ADMIN_APPROVAL

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
expirationMs = 1197072000000
name = "QSvJcbzG"
restrictions = Restrictions.NONE

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
name = ""
restrictions = Restrictions.UNKNOWN
rootKey = <2cc2b48c50aefe53b3974ed91e6b4ea9>

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
expirationMs = 1587945600000
name = "SDTsXBkoG"
restrictions = Restrictions.ADMIN_APPROVAL

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
expirationMs = 1197072000000
name = "QSvJcbzG"
restrictions = Restrictions.NONE

View File

@ -112,7 +112,6 @@ Frame {
recipient = Recipient {
callLink = CallLink {
adminKey = <e77bcc2f537f0b02efe86030ac2c315346a8f5dcc0a79602f9a51310c8eed988>
epoch = <761a278e>
name = ""
restrictions = Restrictions.UNKNOWN
rootKey = <2cc2b48c50aefe53b3974ed91e6b4ea9>