mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-04 00:57:12 -08:00
hide messages from ignored users in room chat
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user