| 36 | } |
| 37 | |
| 38 | void NotificationManager::MarkNotificationsRead(Snowflake channelID) |
| 39 | { |
| 40 | for (auto& notification : m_notifications) |
| 41 | { |
| 42 | if (notification.m_sourceChannel == channelID) |
| 43 | notification.m_bRead = true; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | bool NotificationManager::IsNotificationWorthy(Snowflake guildID, Snowflake channelID, const Message& msg) |
| 48 | { |