| 4642 | } |
| 4643 | |
| 4644 | void MessageList::OnFailedToSendMessage(Snowflake sf) |
| 4645 | { |
| 4646 | for (auto& msg : m_messages) |
| 4647 | { |
| 4648 | if (msg.m_msg->m_snowflake != sf) |
| 4649 | continue; |
| 4650 | |
| 4651 | msg.m_msg->m_type = MessageType::UNSENT_MESSAGE; |
| 4652 | msg.m_msg->SetTime(msg.m_msg->m_dateTime); |
| 4653 | msg.m_date = NULL; |
| 4654 | msg.Update(m_guildID); |
| 4655 | |
| 4656 | RECT rcUpdate2 = msg.m_authorRect; |
| 4657 | rcUpdate2.right = std::max(rcUpdate2.right, msg.m_messageRect.right); |
| 4658 | InvalidateRect(m_hwnd, &msg.m_messageRect, FALSE); |
| 4659 | InvalidateRect(m_hwnd, &rcUpdate2, FALSE); |
| 4660 | } |
| 4661 | } |
| 4662 | |
| 4663 | void MessageList::DetermineMessageMeasurements(MessageItem& mi, HDC _hdc, LPRECT _rect) |
| 4664 | { |
no test coverage detected