fix: Prevent a crash if trending tags, links, or statuses are added to 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
This commit is contained in:
parent
b294a3bace
commit
fe8f84847b
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue