OSDN Git Service

DateTimeLabelのクリック時にStatusIdの型をチェックする
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 16 Jul 2023 18:16:00 +0000 (03:16 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 16 Jul 2023 18:17:32 +0000 (03:17 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/TweetDetailsView.cs

index d1dd214..5b99575 100644 (file)
@@ -6,6 +6,7 @@
  * NEW: Cookie使用時の個別ツイートの取得に対応
  * NEW: graphqlエンドポイントを使用しているタブでの「前データを取得」に対応
  * CHG: Google画像検索のURLの変更に対応
+ * FIX: 発言一覧でDMを選択中に発言詳細部の日時ラベルをクリックするとエラーが発生する不具合を修正
 
 ==== Ver 3.6.2(2023/07/07)
  * FIX: リプライ制限されたツイートのRTがリストのタイムラインに含まれているとエラーになる不具合を修正
index 6190af7..2ca8961 100644 (file)
@@ -1111,6 +1111,9 @@ namespace OpenTween
             if (this.CurrentPost == null)
                 return;
 
+            if (this.CurrentPost.StatusId is not TwitterStatusId)
+                return;
+
             var statusUrl = MyCommon.GetStatusUrl(this.CurrentPost);
             await MyCommon.OpenInBrowserAsync(this, statusUrl);
         }