MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / MarkNotificationsRead

Method MarkNotificationsRead

src/discord/NotificationManager.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void 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
47bool NotificationManager::IsNotificationWorthy(Snowflake guildID, Snowflake channelID, const Message& msg)
48{

Callers 1

RequestMarkReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected