Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
修复部分动态类型评论打不开的问题 (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Apr 24, 2022
1 parent 0fd3b20 commit 85c83de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App/Controls/Dynamic/DynamicItem.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,16 @@ private async void OnReplyButtonClickAsync(object sender, RoutedEventArgs e)
{
case Bilibili.App.Dynamic.V2.DynamicType.Forward:
case Bilibili.App.Dynamic.V2.DynamicType.Word:
case Bilibili.App.Dynamic.V2.DynamicType.Draw:
case Bilibili.App.Dynamic.V2.DynamicType.Live:
type = ReplyType.Dynamic;
break;
case Bilibili.App.Dynamic.V2.DynamicType.Draw:
type = ReplyType.Album;
break;
case Bilibili.App.Dynamic.V2.DynamicType.Av:
case Bilibili.App.Dynamic.V2.DynamicType.Pgc:
case Bilibili.App.Dynamic.V2.DynamicType.UgcSeason:
case Bilibili.App.Dynamic.V2.DynamicType.Medialist:
type = ReplyType.Video;
break;
case Bilibili.App.Dynamic.V2.DynamicType.Courses:
Expand All @@ -166,7 +169,8 @@ private async void OnReplyButtonClickAsync(object sender, RoutedEventArgs e)
return;
}

ReplyModuleViewModel.Instance.SetInformation(Convert.ToInt64(Data.Extend.BusinessId), type, Bilibili.Main.Community.Reply.V1.Mode.MainListTime);
var id = type == ReplyType.Dynamic ? Data.Extend.DynIdStr : Data.Extend.BusinessId;
ReplyModuleViewModel.Instance.SetInformation(Convert.ToInt64(id), type, Bilibili.Main.Community.Reply.V1.Mode.MainListTime);
await ReplyDetailView.Instance.ShowAsync(ReplyModuleViewModel.Instance);
}

Expand Down

0 comments on commit 85c83de

Please sign in to comment.