From 91de877a4d0a02849127c03a40a6749db8b03c64 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 22 May 2015 15:25:16 -0300 Subject: [PATCH] Fix DM/groupchat "from" field which was read as integer instead of string. --- src/twister_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twister_utils.cpp b/src/twister_utils.cpp index 4ccc41c0..f2770ac5 100644 --- a/src/twister_utils.cpp +++ b/src/twister_utils.cpp @@ -255,7 +255,7 @@ int loadUserData(std::string const& filename, std::map &us stoDm.m_text = dmElem->dict_find_string_value("text"); stoDm.m_utcTime = dmElem->dict_find_int_value("time"); stoDm.m_fromMe = dmElem->dict_find_int_value("fromMe"); - stoDm.m_from = dmElem->dict_find_int_value("from"); + stoDm.m_from = dmElem->dict_find_string_value("from"); udata.m_directmsg[dmDict->dict_at(j).first].push_back(stoDm); } }