Index: wengophone/src/presentation/qt/chat/QtChatWidget.cpp
===================================================================
--- wengophone/src/presentation/qt/chat/QtChatWidget.cpp	(revision 587)
+++ wengophone/src/presentation/qt/chat/QtChatWidget.cpp	(revision 594)
@@ -49,4 +49,5 @@
 #include <cutil/global.h>
 #include <qtutil/SafeConnect.h>
+#include <qtutil/StringListConvert.h>
 
 #include <string>
@@ -163,4 +164,5 @@
 
 	//load theme
+	connect(_ui.chatHistory,SIGNAL(loadFinished(bool)),this,SLOT(htmlLoadFinished(bool)));
 	_ui.chatHistory->setTheme(QString::fromStdString(config.getChatTheme()),QString::fromStdString(config.getChatThemeVariant()));
 }
@@ -610,2 +612,38 @@
 	return false;
 }
+
+void QtChatWidget::readyToLoadHistory()
+{	
+
+	HistoryMementoCollection * hmc = _cChatHandler.getCUserProfile().getUserProfile().getHistory().getSessionCollection(_imChatSession->getId());
+	
+	
+	if(hmc)
+		for (HistoryMap::iterator it = hmc->begin(); it != hmc->end(); it++) {
+			
+			HistoryMemento * memento = it->second;
+
+			Time mementoTime = memento->getTime();
+			QTime time = QTime(mementoTime.getHour(), mementoTime.getMinute());
+			
+			QString contactName = QString::fromUtf8(memento->getPeer().c_str());
+			contactName.remove("sip:");
+			
+			QtContactList * qtContactList = _qtWengoPhone->getQtContactList();
+			CContactList & cContactList = qtContactList->getCContactList();
+			QString contactId = QString::fromStdString(cContactList.findContactThatOwns(contactName.toStdString()));
+			
+			_ui.chatHistory->insertMessage(
+											contactId,
+											contactName,
+											QString::fromUtf8(memento->getData().c_str()),
+											time
+											);
+		}
+}
+
+void QtChatWidget::htmlLoadFinished(bool)
+{
+	//WebKit need a little time to load resources ...
+	QTimer::singleShot(500, this, SLOT(readyToLoadHistory()));
+}
Index: wengophone/src/presentation/qt/chat/QtChatWidget.h
===================================================================
--- wengophone/src/presentation/qt/chat/QtChatWidget.h	(revision 562)
+++ wengophone/src/presentation/qt/chat/QtChatWidget.h	(revision 594)
@@ -179,4 +179,8 @@
 	
 	void translate(const QString &);
+	
+	void htmlLoadFinished(bool);
+	
+	void readyToLoadHistory();
 
 private:
