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

Method FindMessage

src/windows/MessageList.cpp:4243–4251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4241}
4242
4243std::list<MessageItem>::iterator MessageList::FindMessage(Snowflake sf)
4244{
4245 for (auto iter = m_messages.rbegin(); iter != m_messages.rend(); ++iter)
4246 {
4247 if (iter->m_msg->m_snowflake == sf)
4248 return --iter.base();
4249 }
4250 return m_messages.end();
4251}
4252
4253std::list<MessageItem>::iterator MessageList::FindMessageByPoint(POINT pt)
4254{

Callers 1

WndProcMethod · 0.80

Calls 2

baseMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected