Skip to content

Commit 29023d0

Browse files
NotificationProfile: Add new id field
1 parent abdea12 commit 29023d0

26 files changed

+16
-1
lines changed

src/main/kotlin/tests/NotificationProfileTestCase.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import StandardFrames
88
import TestCase
99
import asList
1010
import nullable
11+
import okio.ByteString.Companion.toByteString
1112
import org.thoughtcrime.securesms.backup.v2.proto.Frame
1213
import org.thoughtcrime.securesms.backup.v2.proto.NotificationProfile
1314

@@ -59,7 +60,8 @@ object NotificationProfileTestCase : TestCase("notification_profile") {
5960
scheduleStartTime = some(ScheduleTimeGenerator()),
6061
scheduleEndTime = some(ScheduleTimeGenerator()),
6162
scheduleDaysEnabled = some(scheduleDaysGenerator.asList(0, 1, 2, 3, 4, 5, 6, 7)),
62-
allowedMembers = some(allowedMembersGenerator)
63+
allowedMembers = some(allowedMembersGenerator),
64+
id = someBytes(16).toByteString()
6365
)
6466
)
6567
}

src/main/proto/Backup.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,7 @@ message NotificationProfile {
12911291
uint32 scheduleStartTime = 9; // 24-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
12921292
uint32 scheduleEndTime = 10; // 24-hour clock int, 0000-2359 (e.g., 15, 900, 1130, 2345)
12931293
repeated DayOfWeek scheduleDaysEnabled = 11;
1294+
bytes id = 12;
12941295
}
12951296

12961297
message ChatFolder {
18 Bytes
Binary file not shown.

test-cases/notification_profile_00.txtproto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ Frame {
193193
allowAllCalls = true
194194
allowAllMentions = true
195195
color = -1842178
196+
id = <2faf620c7229690068c4b09c566976e5>
196197
name = "Ut Cubilia"
197198
scheduleEnabled = true
198199
scheduleEndTime = 434
18 Bytes
Binary file not shown.

test-cases/notification_profile_01.txtproto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Frame {
196196
color = -2234372
197197
createdAtMs = 1905721875752
198198
emoji = "💀"
199+
id = <2faf620c7229690068c4b09c566976e5>
199200
name = "Congue Fastidii"
200201
scheduleDaysEnabled = [
201202
DayOfWeek.MONDAY
18 Bytes
Binary file not shown.

test-cases/notification_profile_02.txtproto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ Frame {
199199
color = -2561808
200200
createdAtMs = 1894221577852
201201
emoji = "👍"
202+
id = <2faf620c7229690068c4b09c566976e5>
202203
name = "Morbi Dicat"
203204
scheduleDaysEnabled = [
204205
DayOfWeek.TUESDAY,
18 Bytes
Binary file not shown.

test-cases/notification_profile_03.txtproto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ Frame {
197197
]
198198
color = -3283763
199199
emoji = "👎"
200+
id = <2faf620c7229690068c4b09c566976e5>
200201
name = "Ut Cubilia"
201202
scheduleDaysEnabled = [
202203
DayOfWeek.THURSDAY,

0 commit comments

Comments
 (0)