- アップデート前にこれらのサービスを投稿先に選択していた場合は「Twitter」に変更されます
* CHG: 画像投稿のキャンセル時に選択中の画像表示を閉じないように動作を変更
* FIX: 投稿欄の複数行表示が次回起動時に保持されない不具合を修正
+ * FIX: 自分宛のリプライかつ画像のみのツイートを投稿した場合に先頭の「@... 」が除去されない不具合を修正 (thx @mino90h!)
==== Ver 1.4.0(2017/10/30)
* NEW: 自分宛のリプライを送信する場合に先頭の「@... 」を除去します (返信先ツイートの情報は維持したまま投稿されます)
if (this.inReplyTo != null && this.inReplyTo.Item2 == this.tw.Username)
{
var mentionSelf = $"@{this.tw.Username} ";
- if (statusText.Length > mentionSelf.Length && statusText.StartsWith(mentionSelf, StringComparison.OrdinalIgnoreCase))
- statusText = statusText.Substring(mentionSelf.Length);
+ if (statusText.StartsWith(mentionSelf, StringComparison.OrdinalIgnoreCase))
+ {
+ if (statusText.Length > mentionSelf.Length || this.GetSelectedImageService() != null)
+ statusText = statusText.Substring(mentionSelf.Length);
+ }
}
var header = "";
//文字数カウント
var remainCount = this.tw.GetTextLengthRemain(statusText);
- var uploadService = this.ImageSelector.SelectedService;
- if (this.ImageSelector.Visible && uploadService != null)
+ var uploadService = this.GetSelectedImageService();
+ if (uploadService != null)
{
// TODO: ImageSelector で選択中の画像の枚数が mediaCount 引数に渡るようにする
remainCount -= uploadService.GetReservedTextLength(1);
return remainCount;
}
+ private IMediaUploadService GetSelectedImageService()
+ => this.ImageSelector.Visible ? this.ImageSelector.SelectedService : null;
+
private void MyList_CacheVirtualItems(object sender, CacheVirtualItemsEventArgs e)
{
if (sender != this._curList)