Commit bca7b641 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

hide messages from ignored users in room chat

parent 7dc25633
......@@ -10,6 +10,7 @@
#include <QSplitter>
#include "tab_supervisor.h"
#include "tab_room.h"
#include "tab_userlists.h"
#include "userlist.h"
#include "abstractclient.h"
#include "protocol_items.h"
......@@ -156,6 +157,7 @@ void TabRoom::processLeaveRoomEvent(Event_LeaveRoom *event)
void TabRoom::processSayEvent(Event_RoomSay *event)
{
chatView->appendMessage(event->getPlayerName(), event->getMessage());
if (!tabSupervisor->getUserListsTab()->getIgnoreList()->userInList(event->getPlayerName()))
chatView->appendMessage(event->getPlayerName(), event->getMessage());
emit userEvent(false);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment