diff --git a/platforms/symbian/qml/Pages/ConversationPage.qml b/platforms/symbian/qml/Pages/ConversationPage.qml index f674733..7ac64bc 100644 --- a/platforms/symbian/qml/Pages/ConversationPage.qml +++ b/platforms/symbian/qml/Pages/ConversationPage.qml @@ -199,7 +199,7 @@ Page { sendMessage() } } - Component.onCompleted: text = xmppConnectivity.getPreservedMsg(contactJid); + Component.onCompleted: text = xmppConnectivity.getPreservedMsg(accountId,contactJid); } // toolbar diff --git a/src/UpdateManager.cpp b/src/UpdateManager.cpp index 5b898fd..ed47d83 100644 --- a/src/UpdateManager.cpp +++ b/src/UpdateManager.cpp @@ -70,7 +70,7 @@ void UpdateManager::compareVersions() { } // compare release date (remember to update this every build) - if (getUpdateDate() > QDateTime::fromString("06-09-2014","dd-MM-yyyy")) + if (getUpdateDate() > QDateTime::fromString("26-09-2014","dd-MM-yyyy")) updateAvailable = true; // emit signal diff --git a/src/xmpp/XmppConnectivity.cpp b/src/xmpp/XmppConnectivity.cpp index 62dcc62..262e124 100644 --- a/src/xmpp/XmppConnectivity.cpp +++ b/src/xmpp/XmppConnectivity.cpp @@ -328,12 +328,12 @@ QString XmppConnectivity::getPropertyByJid(QString account,QString property,QStr return contacts->getPropertyByJid(account,jid,property); } -QString XmppConnectivity::getPreservedMsg(QString jid) { //this poorly written piece of shit should take care of account id one day - ChatsItemModel* chat = (ChatsItemModel*)chats->find(jid); +QString XmppConnectivity::getPreservedMsg(QString accountId, QString jid) { + ChatsItemModel* chat = (ChatsItemModel*)chats->find(accountId + ";" + jid); return chat !=0 ? chat->msg() : ""; } -void XmppConnectivity::preserveMsg(QString accountId,QString jid,QString message) { //this poorly written piece of shit should take care of account id one day +void XmppConnectivity::preserveMsg(QString accountId,QString jid,QString message) { ChatsItemModel* chat = (ChatsItemModel*)chats->find(accountId + ";" + jid); if (chat != 0) chat->setChatMsg(message); chat = 0; delete chat; diff --git a/src/xmpp/XmppConnectivity.h b/src/xmpp/XmppConnectivity.h index 98e3022..27af9ea 100644 --- a/src/xmpp/XmppConnectivity.h +++ b/src/xmpp/XmppConnectivity.h @@ -116,7 +116,7 @@ public slots: // handling chats list Q_INVOKABLE QString getPropertyByJid(QString account,QString property,QString jid); - Q_INVOKABLE QString getPreservedMsg(QString jid); + Q_INVOKABLE QString getPreservedMsg(QString accountId,QString jid); Q_INVOKABLE void preserveMsg(QString accountId,QString jid,QString message); Q_INVOKABLE void openChat(QString accountId, QString bareJid); Q_INVOKABLE void closeChat(QString accountId, QString bareJid);