[Tween-svn] [1299] 自分のポストでは新着通知、サウンド再生をしないように変更

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2011年 1月 1日 (土) 08:24:36 JST


Revision: 1299
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1299
Author:   anis774
Date:     2011-01-01 08:24:35 +0900 (Sat, 01 Jan 2011)

Log Message:
-----------
自分のポストでは新着通知、サウンド再生をしないように変更

Modified Paths:
--------------
    trunk/Tween/Tween.vb


-------------- next part --------------
Modified: trunk/Tween/Tween.vb
===================================================================
--- trunk/Tween/Tween.vb	2010-12-31 23:24:34 UTC (rev 1298)
+++ trunk/Tween/Tween.vb	2010-12-31 23:24:35 UTC (rev 1299)
@@ -1438,6 +1438,11 @@
     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



Tween-svn メーリングリストの案内
アーカイブの一覧に戻る