Skip to content

Commit

Permalink
don't rehide filtered posts on interaction (tuskyapp#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
connyduck authored Dec 5, 2023
1 parent e1f2d63 commit 6463e99
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/src/main/java/com/keylesspalace/tusky/db/TimelineDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import androidx.room.OnConflictStrategy.Companion.REPLACE
import androidx.room.Query
import androidx.room.TypeConverters
import com.google.gson.Gson
import com.keylesspalace.tusky.entity.FilterResult
import com.keylesspalace.tusky.entity.Status

@Dao
Expand Down Expand Up @@ -113,8 +112,7 @@ AND
muted = status.muted,
pinned = status.pinned ?: false,
card = gson.toJson(status.card),
language = status.language,
filtered = status.filtered
language = status.language
)
}

Expand All @@ -139,8 +137,7 @@ AND
muted = :muted,
pinned = :pinned,
card = :card,
language = :language,
filtered = :filtered
language = :language
WHERE timelineUserId = :accountId AND (serverId = :statusId OR reblogServerId = :statusId)"""
)
@TypeConverters(Converters::class)
Expand All @@ -166,8 +163,7 @@ AND
muted: Boolean?,
pinned: Boolean,
card: String?,
language: String?,
filtered: List<FilterResult>?
language: String?
)

@Query(
Expand Down

0 comments on commit 6463e99

Please sign in to comment.