OSDN Git Service

自分のポストでは新着通知、サウンド再生をしないように変更
authoranis774 <anis774@users.sourceforge.jp>
Fri, 31 Dec 2010 23:24:35 +0000 (23:24 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:18:14 +0000 (23:18 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@1299 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/Tween.vb

index 9e47729..4761f86 100644 (file)
@@ -1438,6 +1438,11 @@ Public Class TweenMain
     End Function
 
     Private Sub NotifyNewPosts(ByVal notifyPosts() As PostClass, ByVal soundFile As String, ByVal addCount As Integer, ByVal newMentions As Boolean)
+        If notifyPosts IsNot Nothing AndAlso _
+            notifyPosts.All(Function(post) post.Uid.ToString() = tw.UserIdNo OrElse post.Name = tw.Username) Then
+            Exit Sub
+        End If
+
         '新着通知
         If BalloonRequired() Then
             If notifyPosts IsNot Nothing AndAlso notifyPosts.Length > 0 Then