Skip to content

Commit

Permalink
refactor(widget): remove uneeded check of if message is targetted
Browse files Browse the repository at this point in the history
It's only relevant for group messages, where the check already exists.
  • Loading branch information
anthonybilinski committed Nov 27, 2019
1 parent e9570ea commit 88d10b1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit 88d10b1

Please sign in to comment.