OSDN Git Service

RAD-480: Text from Muted/Blocked Users no longer shows in group chats 21/head
authornooperation <madbrahmin@gmail.com>
Sat, 18 Jul 2015 23:10:30 +0000 (19:10 -0400)
committernooperation <madbrahmin@gmail.com>
Sat, 18 Jul 2015 23:10:30 +0000 (19:10 -0400)
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);
         }