excluded inline whispers from latest messages in userpopup

This commit is contained in:
TranRed 2019-07-21 09:36:18 +02:00
parent 94ffc66b2a
commit 125774ecb2

View file

@ -620,7 +620,8 @@ void UserInfoPopup::fillLatestMessages(){
for (size_t i = 0; i < snapshot.size(); i++)
{
MessagePtr message = snapshot[i];
if ( message->loginName.compare(this->userName_, Qt::CaseInsensitive) == 0)
if ( message->loginName.compare(this->userName_, Qt::CaseInsensitive) == 0
&& !message->flags.has(MessageFlag::Whisper) )
{
channelPtr->addMessage(message);
}