diff --git a/LinkToolAddin.csproj b/LinkToolAddin.csproj
index 35cdbec..0f3f990 100644
--- a/LinkToolAddin.csproj
+++ b/LinkToolAddin.csproj
@@ -113,7 +113,13 @@
Always
-
+
+ Always
+
+
+
+ Always
+
diff --git a/ui/dockpane/TestDockpane.xaml.cs b/ui/dockpane/TestDockpane.xaml.cs
index 361f9ff..4a37a4e 100644
--- a/ui/dockpane/TestDockpane.xaml.cs
+++ b/ui/dockpane/TestDockpane.xaml.cs
@@ -229,16 +229,12 @@ namespace LinkToolAddin.ui.dockpane
idList.Add(id);
messageDict.TryAdd(msg.id, msg);
}
- Application.Current.Dispatcher.Invoke(() =>
- {
- ReplyTextBox.Clear();
- });
try
{
StringBuilder builder = new StringBuilder();
- foreach (KeyValuePair pair in messageDict)
+ foreach (string idStr in idList)
{
- MessageListItem msgItem = pair.Value;
+ MessageListItem msgItem = messageDict[idStr];
string content = msgItem.content;
if (msgItem.type == MessageType.REASON_MESSAGE)
{
@@ -249,6 +245,7 @@ namespace LinkToolAddin.ui.dockpane
}
Application.Current.Dispatcher.Invoke(() =>
{
+ ReplyTextBox.Clear();
ReplyTextBox.Text = builder.ToString();
ReplyTextBox.ScrollToEnd();
});