Avoid db upgrade: add back deprecated fields concerning unread kind

Change-Id: I5fb946b58e581098f1f52c9730cc43435ff926a8
This commit is contained in:
SpiritCroc 2020-09-17 12:46:34 +02:00
parent 7364aeec93
commit 2812dc0a3e
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,10 @@ internal open class RoomSummaryEntity(
var name: String? = "", var name: String? = "",
var topic: String? = "", var topic: String? = "",
var latestPreviewableEvent: TimelineEventEntity? = null, var latestPreviewableEvent: TimelineEventEntity? = null,
@Deprecated("Different implementation available from upstream. Field not removed to avoid db scheme numbers differing from upstream")
var latestPreviewableContentEvent: TimelineEventEntity? = null,
@Deprecated("Different implementation available from upstream. Field not removed to avoid db scheme numbers differing from upstream")
var latestPreviewableOriginalContentEvent: TimelineEventEntity? = null,
var heroes: RealmList<String> = RealmList(), var heroes: RealmList<String> = RealmList(),
var joinedMembersCount: Int? = 0, var joinedMembersCount: Int? = 0,
var invitedMembersCount: Int? = 0, var invitedMembersCount: Int? = 0,
@ -42,6 +46,10 @@ internal open class RoomSummaryEntity(
var highlightCount: Int = 0, var highlightCount: Int = 0,
var readMarkerId: String? = null, var readMarkerId: String? = null,
var hasUnreadMessages: Boolean = false, var hasUnreadMessages: Boolean = false,
@Deprecated("Different implementation available from upstream. Field not removed to avoid db scheme numbers differing from upstream")
var hasUnreadContentMessages: Boolean = false,
@Deprecated("Different implementation available from upstream. Field not removed to avoid db scheme numbers differing from upstream")
var hasUnreadOriginalContentMessages: Boolean = false,
var tags: RealmList<RoomTagEntity> = RealmList(), var tags: RealmList<RoomTagEntity> = RealmList(),
var userDrafts: UserDraftsEntity? = null, var userDrafts: UserDraftsEntity? = null,
var breadcrumbsIndex: Int = RoomSummary.NOT_IN_BREADCRUMBS, var breadcrumbsIndex: Int = RoomSummary.NOT_IN_BREADCRUMBS,