Revisión | 72325060fb4546e85926349f229764be2e012fef (tree) |
---|---|
Tiempo | 2011-01-22 18:13:11 |
Autor | azyobuzin <azyobuzin@user...> |
Commiter | azyobuzin |
firstをfalseにするのを忘れてた
@@ -17,6 +17,7 @@ namespace Azyobuzi.Twirunrun | ||
17 | 17 | .ToList(); |
18 | 18 | if (e.NewItems.Count != 0 && !first) |
19 | 19 | { |
20 | + first = false; | |
20 | 21 | var newTweets = e.NewItems.OfType<StatusInfo>().Where(tweet => tweet.Type == StatusTypes.DirectMessage); |
21 | 22 | if (newTweets.Any()) this.NotifyNewItems(newTweets.OrderByDescending(_ => _)); |
22 | 23 | } |
@@ -26,6 +26,7 @@ namespace Azyobuzi.Twirunrun | ||
26 | 26 | //新着通知 |
27 | 27 | if (e.NewItems.Count != 0 && !first) |
28 | 28 | { |
29 | + first = false; | |
29 | 30 | var newTweets = e.NewItems.OfType<StatusInfo>().Where(tweet => mentionCheckRegex.IsMatch(tweet.Text)); |
30 | 31 | if (newTweets.Any()) NotifyNewItems(newTweets.OrderByDescending(_ => _)); |
31 | 32 | } |