basic channel mentions count indicator

This commit is contained in:
ouwou committed 2021-12-10 00:15:39 -05:00
1 parent 511fb445d1
commit 0b0135268e
9 files changed
+63 -17

No files matched your search

+6
View File
@@ -263,3 +263,9 @@ bool Message::IsDeleted() const {
bool Message::IsEdited() const {
return m_edited;
}
bool Message::DoesMention(Snowflake id) const noexcept {
return std::any_of(Mentions.begin(), Mentions.end(), [id](const UserData &user) {
return user.ID == id;
});
}