mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 10:17:56 +00:00
Fix validation error with chat folder export.
This commit is contained in:
committed by
jeffrey-signal
parent
0b27c42e89
commit
17e7b1735f
@@ -113,10 +113,10 @@ object ChatFolderArchiveProcessor {
|
||||
private fun ChatFolderRecord.toBackupFrame(includedRecipientIds: List<Long>, excludedRecipientIds: List<Long>): Frame {
|
||||
val chatFolder = ChatFolderProto(
|
||||
name = this.name,
|
||||
showOnlyUnread = this.showUnread,
|
||||
showMutedChats = this.showMutedChats,
|
||||
includeAllIndividualChats = this.showIndividualChats,
|
||||
includeAllGroupChats = this.showGroupChats,
|
||||
showOnlyUnread = this.showUnread && this.folderType != ChatFolderRecord.FolderType.ALL,
|
||||
showMutedChats = this.showMutedChats || this.folderType == ChatFolderRecord.FolderType.ALL,
|
||||
includeAllIndividualChats = this.showIndividualChats || this.folderType == ChatFolderRecord.FolderType.ALL,
|
||||
includeAllGroupChats = this.showGroupChats || this.folderType == ChatFolderRecord.FolderType.ALL,
|
||||
folderType = when (this.folderType) {
|
||||
ChatFolderRecord.FolderType.ALL -> ChatFolderProto.FolderType.ALL
|
||||
ChatFolderRecord.FolderType.CUSTOM -> ChatFolderProto.FolderType.CUSTOM
|
||||
|
||||
Reference in New Issue
Block a user