Skip to content

Commit

Permalink
feat: 機能フラグにreactionAcceptanceの有無の判定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Jul 9, 2023
1 parent 98d8221 commit 2fc2d3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class FeatureEnablesImpl @Inject constructor(
if (isMisskey && version <= Version("13.6.1") || isCalckey) FeatureType.Messaging else null,
if (isMisskey) FeatureType.Drive else null,
if (isMastodon) FeatureType.Bookmark else null,
if (nodeInfo.type is NodeInfo.SoftwareType.Misskey.Normal && version >= Version("13")) FeatureType.ReactionAcceptance else null,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ class FeatureEnablesImplTest {
FeatureType.Drive,
FeatureType.Messaging,
FeatureType.Gallery,
FeatureType.Antenna
FeatureType.Antenna,
FeatureType.ReactionAcceptance
),
result,
)
Expand Down Expand Up @@ -287,7 +288,8 @@ class FeatureEnablesImplTest {
FeatureType.Clip,
FeatureType.Drive,
FeatureType.Gallery,
FeatureType.Antenna
FeatureType.Antenna,
FeatureType.ReactionAcceptance,
),
result,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ interface FeatureEnables {
}

enum class FeatureType {
Gallery, Channel, Group, Antenna, UserReactionHistory, Drive, Bookmark, Clip, Messaging
Gallery, Channel, Group, Antenna, UserReactionHistory, Drive, Bookmark, Clip, Messaging, ReactionAcceptance,
}

0 comments on commit 2fc2d3c

Please sign in to comment.