simplified message.cpp
This commit is contained in:
@@ -314,7 +314,7 @@ void ChannelView::setChannel(SharedChannel newChannel)
|
||||
}
|
||||
}
|
||||
|
||||
if (!message->hasFlags(Message::DoNotTriggerNotification)) {
|
||||
if (message->flags & ~Message::DoNotTriggerNotification) {
|
||||
this->highlightedMessageReceived.invoke();
|
||||
}
|
||||
|
||||
|
||||
@@ -75,8 +75,8 @@ void SearchPopup::performSearch()
|
||||
for (size_t i = 0; i < this->snapshot.getLength(); i++) {
|
||||
messages::MessagePtr message = this->snapshot[i];
|
||||
|
||||
if (text.isEmpty() || message->getSearchText().indexOf(this->searchInput->text(), 0,
|
||||
Qt::CaseInsensitive) != -1) {
|
||||
if (text.isEmpty() ||
|
||||
message->searchText.indexOf(this->searchInput->text(), 0, Qt::CaseInsensitive) != -1) {
|
||||
channel->addMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user