| 156 | } |
| 157 | |
| 158 | void NotificationViewer::OnClickMessage(Snowflake sf) |
| 159 | { |
| 160 | // Look for the notification with this ID. |
| 161 | auto& notifs = GetNotificationManager()->GetNotifications(); |
| 162 | |
| 163 | for (auto& notif : notifs) |
| 164 | { |
| 165 | if (notif.m_sourceMessage != sf) |
| 166 | continue; |
| 167 | |
| 168 | // Go there |
| 169 | GetDiscordInstance()->JumpToMessage( |
| 170 | notif.m_sourceGuild, |
| 171 | notif.m_sourceChannel, |
| 172 | notif.m_sourceMessage |
| 173 | ); |
| 174 | |
| 175 | // Mark it as read: |
| 176 | notif.m_bRead = true; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void NotificationViewer::MarkAllAsRead() |
| 181 | { |
nothing calls this directly
no test coverage detected