NotificationProfile: Add new id field

This commit is contained in:
Scott Nonnenberg 2025-04-15 01:56:49 +10:00 committed by GitHub
parent abdea123d1
commit 29023d042c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
26 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import StandardFrames
import TestCase
import asList
import nullable
import okio.ByteString.Companion.toByteString
import org.thoughtcrime.securesms.backup.v2.proto.Frame
import org.thoughtcrime.securesms.backup.v2.proto.NotificationProfile
@ -59,7 +60,8 @@ object NotificationProfileTestCase : TestCase("notification_profile") {
scheduleStartTime = some(ScheduleTimeGenerator()),
scheduleEndTime = some(ScheduleTimeGenerator()),
scheduleDaysEnabled = some(scheduleDaysGenerator.asList(0, 1, 2, 3, 4, 5, 6, 7)),
allowedMembers = some(allowedMembersGenerator)
allowedMembers = some(allowedMembersGenerator),
id = someBytes(16).toByteString()
)
)
}

View File

@ -1291,6 +1291,7 @@ message NotificationProfile {
uint32 scheduleStartTime = 9; // 24-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
uint32 scheduleEndTime = 10; // 24-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
repeated DayOfWeek scheduleDaysEnabled = 11;
bytes id = 12;
}
message ChatFolder {

View File

@ -193,6 +193,7 @@ Frame {
allowAllCalls = true
allowAllMentions = true
color = -1842178
id = <2faf620c7229690068c4b09c566976e5>
name = "Ut Cubilia"
scheduleEnabled = true
scheduleEndTime = 434

View File

@ -196,6 +196,7 @@ Frame {
color = -2234372
createdAtMs = 1905721875752
emoji = "💀"
id = <2faf620c7229690068c4b09c566976e5>
name = "Congue Fastidii"
scheduleDaysEnabled = [
DayOfWeek.MONDAY

View File

@ -199,6 +199,7 @@ Frame {
color = -2561808
createdAtMs = 1894221577852
emoji = "👍"
id = <2faf620c7229690068c4b09c566976e5>
name = "Morbi Dicat"
scheduleDaysEnabled = [
DayOfWeek.TUESDAY,

View File

@ -197,6 +197,7 @@ Frame {
]
color = -3283763
emoji = "👎"
id = <2faf620c7229690068c4b09c566976e5>
name = "Ut Cubilia"
scheduleDaysEnabled = [
DayOfWeek.THURSDAY,

View File

@ -195,6 +195,7 @@ Frame {
color = -1384200
createdAtMs = 1905721875752
emoji = "👍🏾"
id = <2faf620c7229690068c4b09c566976e5>
name = "Congue Fastidii"
scheduleDaysEnabled = [
DayOfWeek.SUNDAY,

View File

@ -196,6 +196,7 @@ Frame {
color = -662530
createdAtMs = 1894221577852
emoji = "👩‍💻"
id = <2faf620c7229690068c4b09c566976e5>
name = "Morbi Dicat"
scheduleDaysEnabled = [
DayOfWeek.THURSDAY,

View File

@ -197,6 +197,7 @@ Frame {
10
]
color = -599828
id = <2faf620c7229690068c4b09c566976e5>
name = "Ut Cubilia"
scheduleDaysEnabled = [
DayOfWeek.TUESDAY,

View File

@ -198,6 +198,7 @@ Frame {
color = -665641
createdAtMs = 1905721875752
emoji = "💀"
id = <2faf620c7229690068c4b09c566976e5>
name = "Congue Fastidii"
scheduleDaysEnabled = [
DayOfWeek.MONDAY,

View File

@ -195,6 +195,7 @@ Frame {
color = -68144
createdAtMs = 1894221577852
emoji = "👍"
id = <2faf620c7229690068c4b09c566976e5>
name = "Morbi Dicat"
scheduleEnabled = true
scheduleEndTime = 434

View File

@ -195,6 +195,7 @@ Frame {
]
color = -1382699
emoji = "👎"
id = <2faf620c7229690068c4b09c566976e5>
name = "Ut Cubilia"
scheduleDaysEnabled = [
DayOfWeek.MONDAY

View File

@ -199,6 +199,7 @@ Frame {
color = -2960676
createdAtMs = 1905721875752
emoji = "👍🏾"
id = <2faf620c7229690068c4b09c566976e5>
name = "Congue Fastidii"
scheduleDaysEnabled = [
DayOfWeek.TUESDAY,

View File

@ -198,6 +198,7 @@ Frame {
color = -2631719
createdAtMs = 1894221577852
emoji = "👩‍💻"
id = <2faf620c7229690068c4b09c566976e5>
name = "Morbi Dicat"
scheduleDaysEnabled = [
DayOfWeek.THURSDAY,