From 995dbdbd3211eb612be1def81baebf3159070312 Mon Sep 17 00:00:00 2001 From: Sasha Weiss Date: Wed, 4 Sep 2024 16:59:48 -0700 Subject: [PATCH] Tweaks to Chat test cases --- src/main/kotlin/Permutations.kt | 8 ++++++++ .../ChatItemExpirationTimerUpdateTestCase.kt | 2 +- src/main/kotlin/tests/ChatTestCase.kt | 6 +++--- .../kotlin/tests/RecipientCallLinkTestCase.kt | 2 +- test-cases/chat_00.binproto | Bin 515 -> 515 bytes test-cases/chat_00.txtproto | 2 +- test-cases/chat_01.binproto | Bin 596 -> 590 bytes test-cases/chat_01.txtproto | 6 +++--- test-cases/chat_02.binproto | Bin 586 -> 580 bytes test-cases/chat_02.txtproto | 6 +++--- test-cases/chat_03.binproto | Bin 563 -> 563 bytes test-cases/chat_03.txtproto | 2 +- test-cases/chat_04.binproto | Bin 545 -> 539 bytes test-cases/chat_04.txtproto | 6 +++--- test-cases/chat_05.binproto | Bin 565 -> 559 bytes test-cases/chat_05.txtproto | 6 +++--- test-cases/chat_06.binproto | Bin 503 -> 503 bytes test-cases/chat_06.txtproto | 2 +- test-cases/chat_07.binproto | Bin 501 -> 495 bytes test-cases/chat_07.txtproto | 6 +++--- test-cases/chat_08.binproto | Bin 443 -> 437 bytes test-cases/chat_08.txtproto | 6 +++--- test-cases/chat_09.binproto | Bin 417 -> 417 bytes test-cases/chat_09.txtproto | 2 +- test-cases/chat_10.binproto | Bin 443 -> 437 bytes test-cases/chat_10.txtproto | 6 +++--- test-cases/chat_11.binproto | Bin 437 -> 431 bytes test-cases/chat_11.txtproto | 6 +++--- test-cases/chat_12.binproto | Bin 423 -> 423 bytes test-cases/chat_12.txtproto | 2 +- test-cases/chat_13.binproto | Bin 437 -> 431 bytes test-cases/chat_13.txtproto | 6 +++--- test-cases/chat_14.binproto | Bin 443 -> 437 bytes test-cases/chat_14.txtproto | 6 +++--- test-cases/chat_15.binproto | Bin 417 -> 417 bytes test-cases/chat_15.txtproto | 2 +- test-cases/chat_16.binproto | Bin 443 -> 437 bytes test-cases/chat_16.txtproto | 6 +++--- test-cases/chat_17.binproto | Bin 437 -> 431 bytes test-cases/chat_17.txtproto | 6 +++--- test-cases/chat_18.binproto | Bin 423 -> 423 bytes test-cases/chat_18.txtproto | 2 +- test-cases/chat_19.binproto | Bin 437 -> 431 bytes test-cases/chat_19.txtproto | 6 +++--- test-cases/chat_20.binproto | Bin 443 -> 437 bytes test-cases/chat_20.txtproto | 6 +++--- test-cases/chat_21.binproto | Bin 417 -> 417 bytes test-cases/chat_21.txtproto | 2 +- test-cases/chat_22.binproto | Bin 443 -> 437 bytes test-cases/chat_22.txtproto | 6 +++--- test-cases/chat_23.binproto | Bin 437 -> 431 bytes test-cases/chat_23.txtproto | 6 +++--- test-cases/chat_24.binproto | Bin 423 -> 423 bytes test-cases/chat_24.txtproto | 2 +- test-cases/chat_25.binproto | Bin 437 -> 431 bytes test-cases/chat_25.txtproto | 6 +++--- test-cases/chat_26.binproto | Bin 443 -> 437 bytes test-cases/chat_26.txtproto | 6 +++--- test-cases/chat_27.binproto | Bin 417 -> 417 bytes test-cases/chat_27.txtproto | 2 +- test-cases/chat_28.binproto | Bin 443 -> 437 bytes test-cases/chat_28.txtproto | 6 +++--- ...hat_item_expiration_timer_update_01.binproto | Bin 439 -> 436 bytes ...hat_item_expiration_timer_update_01.txtproto | 2 +- ...hat_item_expiration_timer_update_02.binproto | Bin 439 -> 436 bytes ...hat_item_expiration_timer_update_02.txtproto | 2 +- test-cases/recipient_call_link_01.binproto | Bin 382 -> 379 bytes test-cases/recipient_call_link_01.txtproto | 2 +- test-cases/recipient_call_link_02.binproto | Bin 349 -> 346 bytes test-cases/recipient_call_link_02.txtproto | 2 +- 70 files changed, 84 insertions(+), 76 deletions(-) diff --git a/src/main/kotlin/Permutations.kt b/src/main/kotlin/Permutations.kt index 43aadfa..b8aae20 100644 --- a/src/main/kotlin/Permutations.kt +++ b/src/main/kotlin/Permutations.kt @@ -150,6 +150,8 @@ class PermutationScope : Iterator>> { fun someDecrementingTimestamp(lower: Long = 1659383695000, upper: Long = 1911844456000): Long = some(Generators.decrementingTimestamps(lower, upper)) + fun someExpirationTimerMs(): Long = some(Generators.expirationTimersMs()) + fun someE164(): Long = some(Generators.e164s()) fun someUuid(): UUID = some(Generators.uuids()) @@ -275,6 +277,12 @@ object Generators { fun picoMobs(): Generator = Generators.list(SeededRandom.string(18, 25, "123456789"), SeededRandom.string(18, 25, "123456789")) fun colors(): Generator = Generators.list(seededRandomColor(), seededRandomColor(), seededRandomColor()) + /** + * Expiration timers are 64-bit values that should be second-aligned + * (divisible by 1000), and whose value-as-seconds should fit into 32-bits. + */ + fun expirationTimersMs(): Generator = Generators.list(0L, SeededRandom.long(0, Int.MAX_VALUE.toLong()) * 1000, SeededRandom.long(0, Int.MAX_VALUE.toLong()) * 1000) + fun list(vararg items: T): Generator = ListGenerator(items.toList()) fun list(items: List): Generator = ListGenerator(items) fun single(item: T): Generator = Generators.list(item) diff --git a/src/main/kotlin/tests/ChatItemExpirationTimerUpdateTestCase.kt b/src/main/kotlin/tests/ChatItemExpirationTimerUpdateTestCase.kt index 9e76c38..7b91086 100644 --- a/src/main/kotlin/tests/ChatItemExpirationTimerUpdateTestCase.kt +++ b/src/main/kotlin/tests/ChatItemExpirationTimerUpdateTestCase.kt @@ -26,7 +26,7 @@ object ChatItemExpirationTimerUpdateTestCase : TestCase("chat_item_expiration_ti directionless = ChatItem.DirectionlessMessageDetails(), updateMessage = ChatUpdateMessage( expirationTimerChange = ExpirationTimerChatUpdate( - expiresInMs = somePositiveLong() + expiresInMs = someExpirationTimerMs() ) ) ) diff --git a/src/main/kotlin/tests/ChatTestCase.kt b/src/main/kotlin/tests/ChatTestCase.kt index ce3e0b2..2c5f2d5 100644 --- a/src/main/kotlin/tests/ChatTestCase.kt +++ b/src/main/kotlin/tests/ChatTestCase.kt @@ -34,11 +34,11 @@ object ChatTestCase : TestCase("chat") { frames += Frame( chat = Chat( id = 3, - recipientId = StandardFrames.chatAlice.chat!!.id, + recipientId = StandardFrames.recipientAlice.recipient!!.id, archived = someBoolean(), pinnedOrder = some(Generators.list(listOf(0, 1))), - expirationTimerMs = somePositiveLong(), - muteUntilMs = somePositiveLong(), + expirationTimerMs = someExpirationTimerMs(), + muteUntilMs = someTimestamp(), markedUnread = someBoolean(), dontNotifyForMentionsIfMuted = someBoolean(), style = somePermutation { diff --git a/src/main/kotlin/tests/RecipientCallLinkTestCase.kt b/src/main/kotlin/tests/RecipientCallLinkTestCase.kt index 781a32a..91f8090 100644 --- a/src/main/kotlin/tests/RecipientCallLinkTestCase.kt +++ b/src/main/kotlin/tests/RecipientCallLinkTestCase.kt @@ -23,7 +23,7 @@ object RecipientCallLinkTestCase : TestCase("recipient_call_link") { adminKey = someNullableBytes(32)?.toByteString(), name = someString(), restrictions = someEnum(CallLink.Restrictions::class.java, excluding = CallLink.Restrictions.UNKNOWN), - expirationMs = somePositiveLong() + expirationMs = someExpirationTimerMs() ) ) ) diff --git a/test-cases/chat_00.binproto b/test-cases/chat_00.binproto index 2192f7a3225e52c7018a2e6092c13ee9b77ac0b0..cff5e21f3c459b4f8739fc327743f928ed801bdc 100644 GIT binary patch delta 13 UcmZo>X=d3lgOQPC@=V4o031OB^Z)<= delta 13 UcmZo>X=d3lgOQPG@=V4o030_1@&Et; diff --git a/test-cases/chat_00.txtproto b/test-cases/chat_00.txtproto index 3b3b557..ebba33b 100644 --- a/test-cases/chat_00.txtproto +++ b/test-cases/chat_00.txtproto @@ -111,7 +111,7 @@ Frame { dontNotifyForMentionsIfMuted = true id = 3 markedUnread = true - recipientId = 2 + recipientId = 4 style = ChatStyle { autoBubbleColor = AutomaticBubbleColor {} dimWallpaperInDarkMode = true diff --git a/test-cases/chat_01.binproto b/test-cases/chat_01.binproto index 65918e94c9b188c3800e0dc250667f47d9ede543..371ad884b6abf612fabacb324902da3f31dd94c2 100644 GIT binary patch delta 37 vcmV+=0NVf51kMDok^vdI0UEaf2m=rVAOR@QjnTu;2r&M*vY(YQld%D#`2-HC delta 43 zcmV+`0M!4^1k?nuk^vvU0UEsl2m=rTAOR?|p~?U5%D3%MFovaCHb$uyIz0i$|R B6Sn{W diff --git a/test-cases/chat_01.txtproto b/test-cases/chat_01.txtproto index 14d4f37..db4b3e6 100644 --- a/test-cases/chat_01.txtproto +++ b/test-cases/chat_01.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 - muteUntilMs = 3788253560711682182 + muteUntilMs = 1723689901182 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_ULTRAMARINE wallpaperPhoto = FilePointer { diff --git a/test-cases/chat_02.binproto b/test-cases/chat_02.binproto index 6873a0c014288b01e907c1ac3297e4bc19b5e1b4..a3d8ef782781fe9cab89c6615602bd942bd30be7 100644 GIT binary patch delta 37 vcmV+=0NVe`1jGcek^vd80UE6V2m=rV7y&4_rJsbI1Tewp%$A`xld%Dr>SPVv delta 43 zcmV+`0M!4)1j+=kk^vvK0UEOb2m=rT7y&4z&zSY*tG$2?Fu{uQ+R?F(`dO2!0hwv~ B6FdL_ diff --git a/test-cases/chat_02.txtproto b/test-cases/chat_02.txtproto index c9b935d..bb9e651 100644 --- a/test-cases/chat_02.txtproto +++ b/test-cases/chat_02.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 937018508425176998 + expirationTimerMs = 145232483000 id = 3 markedUnread = true - muteUntilMs = 6481873439951717697 - recipientId = 2 + muteUntilMs = 1864331637697 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_CRIMSON dimWallpaperInDarkMode = true diff --git a/test-cases/chat_03.binproto b/test-cases/chat_03.binproto index b9f2ecf03ee1d1027e48919963ed1eb628b290be..1cb722241331ff636007990d9940c1dcc72368d8 100644 GIT binary patch delta 13 VcmdnYvYBPWEJj9_$+H<}001Ec1cm?r delta 13 VcmdnYvYBPWEJjAA$+H<}001ES1cU$p diff --git a/test-cases/chat_03.txtproto b/test-cases/chat_03.txtproto index e852629..cb311a3 100644 --- a/test-cases/chat_03.txtproto +++ b/test-cases/chat_03.txtproto @@ -109,7 +109,7 @@ Frame { chat = Chat { id = 3 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_VERMILION wallpaperPhoto = FilePointer { diff --git a/test-cases/chat_04.binproto b/test-cases/chat_04.binproto index 0dce9a5c063938638e7ced1707087baeb94a7b59..428d1bc1b78bfe316f97f18af6279d6e6fdd9e29 100644 GIT binary patch delta 37 vcmV+=0NVed1e*k~k^vcq0UCq>2m=rV7y&5IjnTu;2r&M*vY(YQld%DC-sBCV delta 43 zcmV+`0M!4R1fc}5k^vu$0UC+{2m=rT7y&4=p~?U5%D3%MFovaCHb$uyIz0dQM6 B60iUO diff --git a/test-cases/chat_04.txtproto b/test-cases/chat_04.txtproto index aa69bd7..d179541 100644 --- a/test-cases/chat_04.txtproto +++ b/test-cases/chat_04.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 markedUnread = true - muteUntilMs = 3788253560711682182 - recipientId = 2 + muteUntilMs = 1723689901182 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_BURLAP dimWallpaperInDarkMode = true diff --git a/test-cases/chat_05.binproto b/test-cases/chat_05.binproto index 8eeca93182aa28061064da8953d1710104cd69e6..5650d9c5ba2a296a8f148e3676e9739c6ceff2f4 100644 GIT binary patch delta 37 vcmV+=0NVex1g`|Jk^vc;0UDSA2m=rVAOR@2rJsbI1Tewp%$A`xld%DW;Dil( delta 43 zcmV+`0M!4l1hoXPk^vu~0UDkG2m=rTAOR?*&zSY*tG$2?Fu{uQ+R?F(`dO2!0fb&s B659X( diff --git a/test-cases/chat_05.txtproto b/test-cases/chat_05.txtproto index b9888bd..cbf704b 100644 --- a/test-cases/chat_05.txtproto +++ b/test-cases/chat_05.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 937018508425176998 + expirationTimerMs = 145232483000 id = 3 - muteUntilMs = 6481873439951717697 + muteUntilMs = 1864331637697 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_FOREST wallpaperPhoto = FilePointer { diff --git a/test-cases/chat_06.binproto b/test-cases/chat_06.binproto index 9c9fe07e25d609d7abd48de4807e96672d0dd78b..eddbb738c4c833bbe42b1b44974b97b8f4862209 100644 GIT binary patch delta 13 Ucmey){GEBj3`Rzl$uk+_04Dzg&Hw-a delta 13 Ucmey){GEBj3`Rz#$uk+_04DVW%m4rY diff --git a/test-cases/chat_06.txtproto b/test-cases/chat_06.txtproto index dfb7ec1..139afdb 100644 --- a/test-cases/chat_06.txtproto +++ b/test-cases/chat_06.txtproto @@ -111,7 +111,7 @@ Frame { dontNotifyForMentionsIfMuted = true id = 3 markedUnread = true - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_WINTERGREEN dimWallpaperInDarkMode = true diff --git a/test-cases/chat_07.binproto b/test-cases/chat_07.binproto index 47bd8f5d89e16524641385576c8cf68bfae68c5d..788ec12693257e3037bc39b50cbd05234c0e35bc 100644 GIT binary patch delta 35 tcmV+;0Nnre1MdT{k^vW78d?Yg5Ck9rDA0}3!_NpX{Fy4a@)l delta 41 zcmV+^0M`HS1N8&2k^voJ8ej+m5CR|pD6^r-|L)4S?NBg=vC!(Rk)_Erlc@nlW0?}! diff --git a/test-cases/chat_07.txtproto b/test-cases/chat_07.txtproto index a9fc944..74a5aa5 100644 --- a/test-cases/chat_07.txtproto +++ b/test-cases/chat_07.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 - muteUntilMs = 3788253560711682182 + muteUntilMs = 1723689901182 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_TEAL wallpaperPhoto = FilePointer { diff --git a/test-cases/chat_08.binproto b/test-cases/chat_08.binproto index e401e3f2752971ce70940b2f70d4f9a1517468a1..38461f3cc5e872064c610bf5a04adcff75f15415 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjU7wpx6EZRIQaa`w1s9Cj1G)mY!-|hj0zk89T*G$ delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD5lSt_2#R+fDJIgit^ggv5)#$H~~NbN(MLq H2mv4nz>yJU diff --git a/test-cases/chat_08.txtproto b/test-cases/chat_08.txtproto index 2955b77..8291393 100644 --- a/test-cases/chat_08.txtproto +++ b/test-cases/chat_08.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 937018508425176998 + expirationTimerMs = 145232483000 id = 3 markedUnread = true - muteUntilMs = 6481873439951717697 - recipientId = 2 + muteUntilMs = 1864331637697 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_BLUE dimWallpaperInDarkMode = true diff --git a/test-cases/chat_09.binproto b/test-cases/chat_09.binproto index 07d1c8a32ef16be71e3197371eea0f3883136792..ed7b5271d5d9b0e7cdcf2a4cbd92823ab9c6fc51 100644 GIT binary patch delta 17 YcmZ3;ypVar3`R~C1x7Cx4kiUo04Qn$K>z>% delta 17 YcmZ3;ypVar3`R~S1x7Cx4kiUo04P`kKL7v# diff --git a/test-cases/chat_09.txtproto b/test-cases/chat_09.txtproto index f230165..1ae0cfb 100644 --- a/test-cases/chat_09.txtproto +++ b/test-cases/chat_09.txtproto @@ -109,7 +109,7 @@ Frame { chat = Chat { id = 3 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_INDIGO wallpaperPreset = WallpaperPreset.SOLID_COPPER diff --git a/test-cases/chat_10.binproto b/test-cases/chat_10.binproto index d0e454bd771339aaa1af83d9611e8167fe8305e8..2bf1e770aef4160d3959185873612eee4d16ec72 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjSIaO51;2S__t%z{HaD3j1G)mY!-|h%nDopD!>ev delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD6^r-|L)4S?NBg=vC!(Rk)_ErH~~NbN(MLq H2m>Gr%s3IM diff --git a/test-cases/chat_10.txtproto b/test-cases/chat_10.txtproto index 95a6b5a..1ef60c5 100644 --- a/test-cases/chat_10.txtproto +++ b/test-cases/chat_10.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 markedUnread = true - muteUntilMs = 3788253560711682182 - recipientId = 2 + muteUntilMs = 1723689901182 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_VIOLET dimWallpaperInDarkMode = true diff --git a/test-cases/chat_11.binproto b/test-cases/chat_11.binproto index 9cf8eca4715f78f2099e1cd66f41027a11d0f704..b996eb061435fdcd6280b285dcaae28560603185 100644 GIT binary patch delta 37 tcmdnWyq2SzV83q}rB1s(uFAp`~h delta 23 ecmZ3^yqtN%3`Tw?2}TP>2SzV83q}rB1s(uF0|W#B diff --git a/test-cases/chat_12.txtproto b/test-cases/chat_12.txtproto index 08fa1f2..276e834 100644 --- a/test-cases/chat_12.txtproto +++ b/test-cases/chat_12.txtproto @@ -111,7 +111,7 @@ Frame { dontNotifyForMentionsIfMuted = true id = 3 markedUnread = true - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_TAUPE dimWallpaperInDarkMode = true diff --git a/test-cases/chat_13.binproto b/test-cases/chat_13.binproto index 1959139bbc8c5979e08486c3eddafdb4955c3668..4feb120591d22e6becf13ccdfb4e20103ab79cc8 100644 GIT binary patch delta 37 tcmdnWyqEF5eKya3!x3(^1p delta 43 zcmV+`0M!4l1GNLNk^v(k8XyP*5CR|pD6^r-|L)4S?NBg=vC!(Rk)_ErN(2Z7APrvK B5aj>> diff --git a/test-cases/chat_13.txtproto b/test-cases/chat_13.txtproto index 5877f8a..5007c15 100644 --- a/test-cases/chat_13.txtproto +++ b/test-cases/chat_13.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 - muteUntilMs = 3788253560711682182 + muteUntilMs = 1723689901182 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_STEEL wallpaperPreset = WallpaperPreset.SOLID_PACIFIC diff --git a/test-cases/chat_14.binproto b/test-cases/chat_14.binproto index be224b19b612a59f9ae20d51f4b5ddb5a0171d81..7500ffac8e9b4ad3a297d667e9efa10b5a2a8b1a 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjU7wpx6EZRIQaa`w1s9Cj1G)mY!-|h>5CRwhD5lSt_2#R+fDJIgit^ggv5)#$H~~NbN(MLq H2nQezz^M^& diff --git a/test-cases/chat_14.txtproto b/test-cases/chat_14.txtproto index ab0d678..6ba9c00 100644 --- a/test-cases/chat_14.txtproto +++ b/test-cases/chat_14.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 937018508425176998 + expirationTimerMs = 145232483000 id = 3 markedUnread = true - muteUntilMs = 6481873439951717697 - recipientId = 2 + muteUntilMs = 1864331637697 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_EMBER dimWallpaperInDarkMode = true diff --git a/test-cases/chat_15.binproto b/test-cases/chat_15.binproto index e677dc3fa5c6f614b5cef69342a543c4e6d28f8a..b2101fe2195ff39f7e508cb7f3b877e41491390e 100644 GIT binary patch delta 17 YcmZ3;ypVar3`R~C1x7Cx4h{u=04Rb3O#lD@ delta 17 YcmZ3;ypVar3`R~S1x7Cx4h{u=04Q(+O8@`> diff --git a/test-cases/chat_15.txtproto b/test-cases/chat_15.txtproto index 2d7fec1..5e7130f 100644 --- a/test-cases/chat_15.txtproto +++ b/test-cases/chat_15.txtproto @@ -109,7 +109,7 @@ Frame { chat = Chat { id = 3 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_MIDNIGHT wallpaperPreset = WallpaperPreset.SOLID_NAVY diff --git a/test-cases/chat_16.binproto b/test-cases/chat_16.binproto index eb7ca4e8692f4312159636ce26acc5ffe6257066..5b6685aa7c13e454243464fa0298c7cec0d3a812 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjSIaO51;2S__t%z{HaD3j1G)mY!-|hoC*Q}D%cF8 delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD6^r-|L)4S?NBg=vC!(Rk)_ErH~~NbN(MLq H2niq%%uo@w diff --git a/test-cases/chat_16.txtproto b/test-cases/chat_16.txtproto index 46182a4..920875f 100644 --- a/test-cases/chat_16.txtproto +++ b/test-cases/chat_16.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 markedUnread = true - muteUntilMs = 3788253560711682182 - recipientId = 2 + muteUntilMs = 1723689901182 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_INFRARED dimWallpaperInDarkMode = true diff --git a/test-cases/chat_17.binproto b/test-cases/chat_17.binproto index a7bace6acb71659966e514cb806205aad1373295..80afcc64cd2cf8f7d7fee7db2fa0d73f9d3d60ae 100644 GIT binary patch delta 37 tcmdnWyq2SzV83q}rZ1t9=IIRp{_ delta 23 ecmZ3^yqtN%3`Tw?2}TP>2SzV83q}rZ1t9=I8w3yl diff --git a/test-cases/chat_18.txtproto b/test-cases/chat_18.txtproto index 1233cf2..f277e73 100644 --- a/test-cases/chat_18.txtproto +++ b/test-cases/chat_18.txtproto @@ -111,7 +111,7 @@ Frame { dontNotifyForMentionsIfMuted = true id = 3 markedUnread = true - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_FLUORESCENT dimWallpaperInDarkMode = true diff --git a/test-cases/chat_19.binproto b/test-cases/chat_19.binproto index d77d3eaef7ebd6fdbc7068e44145345a887cabe2..5d8713e9c55826dcbe1fcdc5679fa279669fb2af 100644 GIT binary patch delta 37 tcmdnWyqEF3%v!T{W43*G<# delta 43 zcmV+`0M!4l1GNLNk^v(k8XyP*5CR|pD6^r-|L)4S?NBg=vC!(Rk)_ErN(2ZDAQN8o B5b*#2 diff --git a/test-cases/chat_19.txtproto b/test-cases/chat_19.txtproto index ae55928..4589848 100644 --- a/test-cases/chat_19.txtproto +++ b/test-cases/chat_19.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 - muteUntilMs = 3788253560711682182 + muteUntilMs = 1723689901182 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_BASIL wallpaperPreset = WallpaperPreset.SOLID_SILVER diff --git a/test-cases/chat_20.binproto b/test-cases/chat_20.binproto index 9620320d16b21065b207aa4274ac10a425552b0a..2de2c88007057d07c0d9d9656ce25c27f3c4a6a5 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjU7wpx6EZRIQaa`w1s9Cj1G)mY!-|hyb2-!9Y_op delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD5lSt_2#R+fDJIgit^ggv5)#$H~~NbN(MLq H2n`?5CRwhD6^r-|L)4S?NBg=vC!(Rk)_ErH~~NbN(MLq H2oE3@%xDq9 diff --git a/test-cases/chat_22.txtproto b/test-cases/chat_22.txtproto index dca3a03..0a6d5a9 100644 --- a/test-cases/chat_22.txtproto +++ b/test-cases/chat_22.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 markedUnread = true - muteUntilMs = 3788253560711682182 - recipientId = 2 + muteUntilMs = 1723689901182 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.GRADIENT_TANGERINE dimWallpaperInDarkMode = true diff --git a/test-cases/chat_23.binproto b/test-cases/chat_23.binproto index 7746a0861dd92b5f43e181a086d0e5921fe1dac9..999616379229c62e20eea5875b2367b868a371d1 100644 GIT binary patch delta 37 tcmdnWyq2SzV83q}q>4JH6VO9T)A delta 23 ecmZ3^yqtN%3`Tw?2}TP>2SzV83q}q>4JH6VEd&k# diff --git a/test-cases/chat_24.txtproto b/test-cases/chat_24.txtproto index cc4fb5d..4566b0b 100644 --- a/test-cases/chat_24.txtproto +++ b/test-cases/chat_24.txtproto @@ -111,7 +111,7 @@ Frame { dontNotifyForMentionsIfMuted = true id = 3 markedUnread = true - recipientId = 2 + recipientId = 4 style = ChatStyle { customColorId = 2 dimWallpaperInDarkMode = true diff --git a/test-cases/chat_25.binproto b/test-cases/chat_25.binproto index 3c0535f1db41d26c435c7d36f6b065c89bca98da..501992bcd8de3a87a1814b01ec7c95749af925f9 100644 GIT binary patch delta 37 tcmdnWyqEF3}_%mCbW3)}zz delta 43 zcmV+`0M!4l1GNLNk^v(k8XyP*5CR|pD6^r-|L)4S?NBg=vC!(Rk)_ErN(2ZJC<9*y B5bpp0 diff --git a/test-cases/chat_25.txtproto b/test-cases/chat_25.txtproto index 91eca9f..93f9a1f 100644 --- a/test-cases/chat_25.txtproto +++ b/test-cases/chat_25.txtproto @@ -107,11 +107,11 @@ Frame { Frame { chat = Chat { - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 - muteUntilMs = 3788253560711682182 + muteUntilMs = 1723689901182 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { customColorId = 3 wallpaperPreset = WallpaperPreset.GRADIENT_MONSTERA diff --git a/test-cases/chat_26.binproto b/test-cases/chat_26.binproto index a3492d7a4e8fe87e0c7562d444073360295078aa..1f13d7c109d91ed00bf96a3c675306a585d8726a 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjU7wpx6EZRIQaa`w1s9Cj1G)mY!-|h!cq(X9XbpH delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD5lSt_2#R+fDJIgit^ggv5)#$H~~NbN(MLq H2oo9rz_Sr) diff --git a/test-cases/chat_26.txtproto b/test-cases/chat_26.txtproto index fe70bb0..528a9b9 100644 --- a/test-cases/chat_26.txtproto +++ b/test-cases/chat_26.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 937018508425176998 + expirationTimerMs = 145232483000 id = 3 markedUnread = true - muteUntilMs = 6481873439951717697 - recipientId = 2 + muteUntilMs = 1864331637697 + recipientId = 4 style = ChatStyle { autoBubbleColor = AutomaticBubbleColor {} dimWallpaperInDarkMode = true diff --git a/test-cases/chat_27.binproto b/test-cases/chat_27.binproto index 6efe6da3ff7e1f57a7cb368e84fa91cbeacaa9ee..24126e169a679c61ad453fbdffae3d7d1678926b 100644 GIT binary patch delta 17 YcmZ3;ypVar3`R~C1x7Cx4iN=L04SIPO8@`> delta 17 YcmZ3;ypVar3`R~S1x7Cx4iN=L04Rn7NdN!< diff --git a/test-cases/chat_27.txtproto b/test-cases/chat_27.txtproto index 0f4c262..d7e7294 100644 --- a/test-cases/chat_27.txtproto +++ b/test-cases/chat_27.txtproto @@ -109,7 +109,7 @@ Frame { chat = Chat { id = 3 pinnedOrder = 1 - recipientId = 2 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_ULTRAMARINE wallpaperPreset = WallpaperPreset.GRADIENT_SKY diff --git a/test-cases/chat_28.binproto b/test-cases/chat_28.binproto index 48c5455e89cb37e433ca45c16116ef071d388be4..23ab64f90829ca1fdd7a8e6c05e6b43bc041b832 100644 GIT binary patch delta 43 zcmdnZyp?&wBt~T=DFqH@0Tu~HjSIaO51;2S__t%z{HaD3j1G)mY!-|hq6$m^D((!S delta 49 zcmV-10M7rl1G@vTk^w0w8YTz>5CRwhD6^r-|L)4S?NBg=vC!(Rk)_ErH~~NbN(MLq H2o)d#%w`d^ diff --git a/test-cases/chat_28.txtproto b/test-cases/chat_28.txtproto index 339df8a..d8b40ff 100644 --- a/test-cases/chat_28.txtproto +++ b/test-cases/chat_28.txtproto @@ -109,11 +109,11 @@ Frame { chat = Chat { archived = true dontNotifyForMentionsIfMuted = true - expirationTimerMs = 5826213532931346611 + expirationTimerMs = 296226146000 id = 3 markedUnread = true - muteUntilMs = 3788253560711682182 - recipientId = 2 + muteUntilMs = 1723689901182 + recipientId = 4 style = ChatStyle { bubbleColorPreset = BubbleColorPreset.SOLID_CRIMSON dimWallpaperInDarkMode = true diff --git a/test-cases/chat_item_expiration_timer_update_01.binproto b/test-cases/chat_item_expiration_timer_update_01.binproto index b7efde734c5c9440e509cb369983f9d9a32e01c9..18040e5372d2b37c02df17fbaf79d9525f4cb3c9 100644 GIT binary patch delta 35 rcmdnayoGtgOh#!bB?%5D0TziHi(hYDXBxy%#VN(kap3izwa4WF$JGp% delta 38 wcmV+>0NMYv1GfXPnE@UhA{z(-5Cj<5qwBSpdu^ZS^;p_1RORP;R##Q*>R diff --git a/test-cases/chat_item_expiration_timer_update_01.txtproto b/test-cases/chat_item_expiration_timer_update_01.txtproto index 538fa3d..fb96f92 100644 --- a/test-cases/chat_item_expiration_timer_update_01.txtproto +++ b/test-cases/chat_item_expiration_timer_update_01.txtproto @@ -120,7 +120,7 @@ Frame { directionless = DirectionlessMessageDetails {} updateMessage = ChatUpdateMessage { expirationTimerChange = ExpirationTimerChatUpdate { - expiresInMs = 6079152038928072179 + expiresInMs = 1084307224000 } } } diff --git a/test-cases/chat_item_expiration_timer_update_02.binproto b/test-cases/chat_item_expiration_timer_update_02.binproto index 3138ee6dad171daa4f61b76d557733cc15b4a43d..b639972ee891b673090bbd3d1aff64faf57c5579 100644 GIT binary patch delta 35 rcmdnayoGtgOh#!bB?%5D0Y-`Sb5AW@Z5YH*#VN(kF=5uhi_dugy@3m& delta 38 wcmV+>0NMYv1GfXPnE@UhA{z(-5CIskoyw)FF;W0}3>pdu_vpdFnf3320qs)`V*mgE diff --git a/test-cases/chat_item_expiration_timer_update_02.txtproto b/test-cases/chat_item_expiration_timer_update_02.txtproto index 60d9f36..4f72ee0 100644 --- a/test-cases/chat_item_expiration_timer_update_02.txtproto +++ b/test-cases/chat_item_expiration_timer_update_02.txtproto @@ -120,7 +120,7 @@ Frame { directionless = DirectionlessMessageDetails {} updateMessage = ChatUpdateMessage { expirationTimerChange = ExpirationTimerChatUpdate { - expiresInMs = 73675704045171831 + expiresInMs = 440136650000 } } } diff --git a/test-cases/recipient_call_link_01.binproto b/test-cases/recipient_call_link_01.binproto index 3368c47bcc50ae0c47b0f97d10f3f94d1c8ec887..86a0cc7db343bdadf5198705497d7ccc720496e1 100644 GIT binary patch delta 24 gcmeyz^qXmeJ|nBQkf)XVWD`b5wi#{Huf0|R0A~;gu>b%7 delta 27 jcmey(^p9zSJ|nB2kdKwuWD`b5&JTTUcYm*2`HmF;i#rQT diff --git a/test-cases/recipient_call_link_01.txtproto b/test-cases/recipient_call_link_01.txtproto index a044c10..6bcd31e 100644 --- a/test-cases/recipient_call_link_01.txtproto +++ b/test-cases/recipient_call_link_01.txtproto @@ -93,7 +93,7 @@ Frame { recipient = Recipient { callLink = CallLink { adminKey = - expirationMs = 422394398733600624 + expirationMs = 1197134431000 name = "QSvJcbzG" restrictions = Restrictions.ADMIN_APPROVAL rootKey = <2cc2b48c50aefe53b3974ed91e6b4ea9> diff --git a/test-cases/recipient_call_link_02.binproto b/test-cases/recipient_call_link_02.binproto index 3505582d42db4642e2a2c87500b8db6508949279..10e73b9004880cc2259385033dcc3a824e947cdc 100644 GIT binary patch delta 24 gcmcc1bc<<&J|nA^kcO4oWD`aOwi%OtJe{ov09*+OBLDyZ delta 27 jcmcb`beCy^J|nBHkhYcPWD`aO&c=D?mOtD0@l6c?dc+Fj diff --git a/test-cases/recipient_call_link_02.txtproto b/test-cases/recipient_call_link_02.txtproto index 37842a4..690d15d 100644 --- a/test-cases/recipient_call_link_02.txtproto +++ b/test-cases/recipient_call_link_02.txtproto @@ -92,7 +92,7 @@ Frame { Frame { recipient = Recipient { callLink = CallLink { - expirationMs = 8996438946018987777 + expirationMs = 1588009503000 name = "SDTsXBkoG" restrictions = Restrictions.NONE rootKey = <2cc2b48c50aefe53b3974ed91e6b4ea9>