1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(widget): remove uneeded check of if message is targetted

It's only relevant for group messages, where the check already exists.
This commit is contained in:
Anthony Bilinski 2019-11-25 18:19:27 -08:00
parent e9570eafdf
commit 88d10b1249
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -1166,10 +1166,6 @@ void Widget::addFriend(uint32_t friendId, const ToxPk& friendPk)
auto notifyReceivedCallback = [this, friendPk](const ToxPk& author, const Message& message) {
auto isTargeted = std::any_of(message.metadata.begin(), message.metadata.end(),
[](MessageMetadata metadata) {
return metadata.type == MessageMetadataType::selfMention;
});
newFriendMessageAlert(friendPk, message.content);
};