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

Method OnFailedToSendMessage

src/windows/MessageList.cpp:4644–4661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4642}
4643
4644void 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
4663void MessageList::DetermineMessageMeasurements(MessageItem& mi, HDC _hdc, LPRECT _rect)
4664{

Callers 2

HandleRequestMethod · 0.45
WindowProcFunction · 0.45

Calls 2

SetTimeMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected