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:
parent
e9570eafdf
commit
88d10b1249
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user