Skip to content

Commit

Permalink
fix bug of recalling QQgroup messages
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyRabbit committed Aug 30, 2017
1 parent 119a00a commit b81d8e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
3 changes: 1 addition & 2 deletions AntiRecall/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public MainWindow()
ShortCut.init_shortcut("AntiRecall");
ShortCut.init_xml();
CheckUpdate.init_checkUpdate();

init_minimize();
if (ShortCut.CheckXml())
{
QQPath.Text = ShortCut.QueryXml("QQPath");
Expand All @@ -103,7 +103,6 @@ public MainWindow()
{
ShortCut.CreateXml(ShortCut.antiRElement);
}
init_minimize();

}

Expand Down
30 changes: 15 additions & 15 deletions AntiRecall/network/DataRecive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ public override void OnClientDataReceived(object sender, DataEventArgs e)
public override void OnServerDataReceived(object sender, DataEventArgs e)
{


if (e.Count == 137 && e.Buffer[6] == 0x17)
{
e.Buffer[6] = 0x00;
if (e.Buffer[6] == 0x17)
if (e.Count == 137 || e.Count == 121)
{
e.Buffer[6] = 0x00;

MainWindow.count++;
MainWindow.count++;

if ((MainWindow.count + 7) % 8 ==0)
{
App.Current.Dispatcher.Invoke(
(Action)delegate {
((MainWindow)System.Windows.Application.Current.MainWindow).ModifyRecallCount();
}
);
if ((MainWindow.count + 7) % 8 ==0)
{
App.Current.Dispatcher.Invoke(
(Action)delegate {
((MainWindow)System.Windows.Application.Current.MainWindow).ModifyRecallCount();
}
);

}
}

#if DEBUG
Console.WriteLine("capture recall");
Console.WriteLine("capture recall");
#endif
}
}

return;

Expand Down

0 comments on commit b81d8e2

Please sign in to comment.