Skip to content

Commit 2e22808

Browse files
Fix chat folder setup.
1 parent 93a7d29 commit 2e22808

10 files changed

+108
-0
lines changed

src/main/kotlin/StandardFrames.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,12 @@ object StandardFrames {
302302
expireTimerVersion = 1
303303
)
304304
)
305+
306+
val chatBob = Frame(
307+
chat = Chat(
308+
id = 5,
309+
recipientId = recipientBob.recipient!!.id,
310+
expireTimerVersion = 1
311+
)
312+
)
305313
}

src/main/kotlin/tests/ChatFolderTestCase.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ object ChatFolderTestCase : TestCase("chat_folder") {
1616
frames += StandardFrames.recipientBob
1717
frames += StandardFrames.recipientGroupAB
1818

19+
frames += StandardFrames.chatAlice
20+
frames += StandardFrames.chatBob
21+
frames += StandardFrames.chatGroupAB
22+
1923
val memberIds: List<Long> = listOf(
2024
StandardFrames.recipientAlice,
2125
StandardFrames.recipientBob,

test-cases/chat_folder_00.binproto

27 Bytes
Binary file not shown.

test-cases/chat_folder_00.txtproto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@ Frame {
168168
}
169169
}
170170

171+
Frame {
172+
chat = Chat {
173+
expireTimerVersion = 1
174+
id = 2
175+
recipientId = 4
176+
}
177+
}
178+
179+
Frame {
180+
chat = Chat {
181+
expireTimerVersion = 1
182+
id = 5
183+
recipientId = 5
184+
}
185+
}
186+
187+
Frame {
188+
chat = Chat {
189+
expireTimerVersion = 1
190+
id = 3
191+
recipientId = 10
192+
}
193+
}
194+
171195
Frame {
172196
chatFolder = ChatFolder {
173197
folderType = FolderType.ALL

test-cases/chat_folder_01.binproto

27 Bytes
Binary file not shown.

test-cases/chat_folder_01.txtproto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@ Frame {
168168
}
169169
}
170170

171+
Frame {
172+
chat = Chat {
173+
expireTimerVersion = 1
174+
id = 2
175+
recipientId = 4
176+
}
177+
}
178+
179+
Frame {
180+
chat = Chat {
181+
expireTimerVersion = 1
182+
id = 5
183+
recipientId = 5
184+
}
185+
}
186+
187+
Frame {
188+
chat = Chat {
189+
expireTimerVersion = 1
190+
id = 3
191+
recipientId = 10
192+
}
193+
}
194+
171195
Frame {
172196
chatFolder = ChatFolder {
173197
folderType = FolderType.ALL

test-cases/chat_folder_02.binproto

27 Bytes
Binary file not shown.

test-cases/chat_folder_02.txtproto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@ Frame {
168168
}
169169
}
170170

171+
Frame {
172+
chat = Chat {
173+
expireTimerVersion = 1
174+
id = 2
175+
recipientId = 4
176+
}
177+
}
178+
179+
Frame {
180+
chat = Chat {
181+
expireTimerVersion = 1
182+
id = 5
183+
recipientId = 5
184+
}
185+
}
186+
187+
Frame {
188+
chat = Chat {
189+
expireTimerVersion = 1
190+
id = 3
191+
recipientId = 10
192+
}
193+
}
194+
171195
Frame {
172196
chatFolder = ChatFolder {
173197
folderType = FolderType.ALL

test-cases/chat_folder_03.binproto

27 Bytes
Binary file not shown.

test-cases/chat_folder_03.txtproto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@ Frame {
168168
}
169169
}
170170

171+
Frame {
172+
chat = Chat {
173+
expireTimerVersion = 1
174+
id = 2
175+
recipientId = 4
176+
}
177+
}
178+
179+
Frame {
180+
chat = Chat {
181+
expireTimerVersion = 1
182+
id = 5
183+
recipientId = 5
184+
}
185+
}
186+
187+
Frame {
188+
chat = Chat {
189+
expireTimerVersion = 1
190+
id = 3
191+
recipientId = 10
192+
}
193+
}
194+
171195
Frame {
172196
chatFolder = ChatFolder {
173197
folderType = FolderType.ALL

0 commit comments

Comments
 (0)