diff --git a/Garlic.cpp b/Garlic.cpp index 290b9b79..94ca82eb 100644 --- a/Garlic.cpp +++ b/Garlic.cpp @@ -274,7 +274,7 @@ namespace garlic if (newTags) // new tags created { newTags->msgID = msgID; - m_UnconfirmedTagsMsgs.emplace (msgID, std::unique_ptr(newTags)); + m_UnconfirmedTagsMsgs.insert (std::make_pair(msgID, std::unique_ptr(newTags))); newTags = nullptr; // got acquired } m_Owner->DeliveryStatusSent (shared_from_this (), msgID);