OSDN Git Service

Merge pull request #21 from nooperation/RAD-480
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 19 Jul 2015 07:52:46 +0000 (00:52 -0700)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 19 Jul 2015 07:52:46 +0000 (00:52 -0700)
RAD-480: Text from Muted/Blocked Users no longer shows in group chats

Radegast/Core/IMTextManager.cs

index 8e3c2c2..ddff268 100644 (file)
@@ -117,6 +117,11 @@ namespace Radegast
                 e.IM.Dialog == InstantMessageDialog.StopTyping)
                 return;
 
+            if (instance.Client.Self.MuteList.Find(me => me.Type == MuteType.Resident && me.ID == e.IM.FromAgentID) != null)
+            {
+                return;
+            }
+
             textBuffer.Add(e);
             ProcessIM(e);
         }