Skip to content

Commit

Permalink
fix: Prevent a crash if trending tags, links, or statuses are added t…
Browse files Browse the repository at this point in the history
…o tabs (#323)

The previous code was serialising the `TabKind` enum without the `_`, so
when it was converted back to the enum name (which has a `_`) it failed
and immediately crashed.

Fixes #306
  • Loading branch information
nikclayton authored Dec 14, 2023
1 parent b294a3b commit fe8f848
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ enum class TabKind(val repr: String) {
LOCAL("Local"),
FEDERATED("Federated"),
DIRECT("Direct"),
TRENDING_TAGS("TrendingTags"),
TRENDING_LINKS("TrendingLinks"),
TRENDING_STATUSES("TrendingStatuses"),
TRENDING_TAGS("Trending_Tags"),
TRENDING_LINKS("Trending_Links"),
TRENDING_STATUSES("Trending_Statuses"),
HASHTAG("Hashtag"),
LIST("List"),
BOOKMARKS("Bookmarks")
Expand Down

0 comments on commit fe8f848

Please sign in to comment.